Last active
December 23, 2015 23:19
-
-
Save ahimmelstoss/6708903 to your computer and use it in GitHub Desktop.
first program, ruby lecture 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
song1 = 223 | |
song2 = 215 | |
song3 = 378 | |
song4 = 324 | |
song5 = 254 | |
total_length = song1+song2+song3+song4+song5 | |
puts total_length | |
length_minutes = total_length / 60.0 | |
puts length_minutes | |
average = length_minutes / 5.00 | |
puts average |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment