Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. puts 'Hello World!'
  2. greeting = 'Good morning!'
  3. puts greeting
  4.  
  5.  
  6. forecast = "rainy" # string
  7. temperature = 32 # number
  8. is_summer = true # boolean
  9. # overwrite the existing value with a new one
  10. forecast = "sunny"
  11. print "It's going to be #{forecast}, #{temperature} degrees outside today. "
  12.  
  13.  
  14. # output to the same line.
  15. print 'It\'s going to be a great day!'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement