diff options
author | Boris Verkhovskiy <boris.verk@gmail.com> | 2024-05-27 12:15:14 -0600 |
---|---|---|
committer | Boris Verkhovskiy <boris.verk@gmail.com> | 2024-05-27 12:15:14 -0600 |
commit | 12ecedd4f51ec9f61b45058755c161d773e1be40 (patch) | |
tree | 75d936e5298d5e8e58f7f771808bdb95cf8f833e /bc.html.markdown | |
parent | e1bc8441e80800278f4276906b0c9f6c14b28eee (diff) |
Correct highlighted lanugages
Diffstat (limited to 'bc.html.markdown')
-rw-r--r-- | bc.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bc.html.markdown b/bc.html.markdown index 3420f766..d4825739 100644 --- a/bc.html.markdown +++ b/bc.html.markdown @@ -4,7 +4,7 @@ contributors: - ["Btup"] filename: learnbc.bc --- -```c +```bc /*This is a multi- line comment.*/ # This is also a (one-line) comment! (in GNU bc). @@ -29,12 +29,12 @@ hour = read() /*Input a number*/ if(hour < 12) { /*Operators are exactly like C.*/ print "Good morning\n" /*"print" outputs strings or variables - separated by commas.*/ + separated by commas.*/ } else if(hour == 12) { print "Hello\n" /*Escaping sequences start with a \ in a string. In order to make the escaping sequences clearer, here - is a simplified list of them that will work in bc: + is a simplified list of them that will work in bc: \b: backspace \c: carriage return \n: newline |