Ok, before I go any further, this is my own program. Im doing the learning Tutorial from LearningRuby.com and not from a text book or anything for a class, this is mine and only mine. With that said, I would like to know if anyone could help me figure out what Ive done wrong?
Before I reveal this life changing code, I used to be a BASIC (not VB) programmer so if you reconize old basic, this will look familiar. Now with ruby, can i set a variable for a number like in basic? Like 2 + 3 = A; A - 4 =B Etc..? Well, if anyone can help let me know, Ive been dying to learn this for a while now.
This program is supposed to tell you the amount of minutes in a year, but Ive taken it a bit further. Im having it tell me the amount of minutes in an Hour, the amount of minutes in a Day, In a week, and In a year. Thank you for your time.
CODE
=begin
Ruby Numbers
Usual operators:
+ addition
- subtraction
* multiplication
/ division
=end
puts "60 Minutes In an Hour"
puts 60 * 24 "Minutes in a Day"
puts ( 60 * 24 ) * 7 "Minutes in a Week"
puts ( 60 * 24 * 7) * 52 "Minutes in a Year"
Help if Possible!
-TD