Editor Only Shows the Last Command


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?



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


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.


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:


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