Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- puts 1+2
- # floats
- puts 1.0 + 2.0
- puts 2.0 * 3.0
- puts 5.0 - 8.0
- puts 9.0 / 2.0
- # integers
- puts 1+2
- puts 2*3
- puts 5-8
- puts 9/2
- # experiment with puts
- puts 5 * (12-8) + -15
- puts 98 + (59872 / (13*8)) * -52
- # how many hours are in a year?
- puts 24 * 365
- # how many minutes are in a decade?
- puts (60 * 24) * (365 * 10)
- # how many seconds old are you?
- puts (60 * 60) * 24 * (365 * 24)
- # If I am 1031 million seconds old, how old am I?
- puts 1031000000 / (60 * 60 * 24 * 365)
Add Comment
Please, Sign In to add comment