Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 55 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top