#1 Ruby Fundamentals
##1.1 Variables and Substitution 1.1.1
1.1.2
1.1.3
1.1.4
#1 Ruby Fundamentals
##1.1 Variables and Substitution 1.1.1
1.1.2
1.1.3
1.1.4
#Write a program that tells you the following: | |
hours_in_a_year = (24 * 365) | |
puts "There are #{hours_in_a_year} hours in a year." | |
minutes_in_a_decade = ((60 * 24 * 365) * 10) | |
puts "There are #{minutes_in_a_decade} minutes in a decade." | |
sarah_t_age_in_seconds = ((60 * 60 * 24) * 365 * 27.5) | |
puts "At the time of writing this code, my age in seconds is approximately #{sarah_t_age_in_seconds} seconds." |