daily pastebin goal


a guest Mar 13th, 2018 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 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?
  2. Look at this code:
  3. ```ruby
  4. PUTS 3 + 3
  5. ```
  6. Predict what exactly will happen when you run the above code. Then run it and see if you were correct.
  7. 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:
  8. ```ruby
  9. puts 7 + 3
  10. ```
  11. Write the code above 3 more ways that will also output the number 10 in the terminal.
RAW Paste Data