diff options
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 |