a guest Mar 13th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- Create a brand new Ruby file that displays the result of some subtraction and run it from the terminal. What happens if you subtract a greater number from a lesser number?
- Look at this code:
- PUTS 3 + 3
- Predict what exactly will happen when you run the above code. Then run it and see if you were correct.
- Create another ruby file called many_ways.rb. You could get the number 10 to appear in the terminal (the output) by writing the code:
- puts 7 + 3
- Write the code above 3 more ways that will also output the number 10 in the terminal.
RAW Paste Data