Editor Only Shows the Last Command


#1



I enter the following as instructed, but the editor didn't show the calculation of the first two commands but the last one only. Can somebody tell me why please?


sum=13+379
product=923*15
quotient=13209/17


#2

Hi
I am Diner...I have the same problem here..


#3

That isn't a problem so much as just the way the Ruby environment is setup at Codecademy. If you test a bit, you will see that it always displays your last expression. If you really wanted to display something, like all three of those calculations, you would use a puts or print statement.


#4

thank you for the answer! I did use 'puts' and 'print' in order to have every line run by the editor and thought that it wasn't very "smart", good to know tho, thanks again :slight_smile:


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.