Created
January 2, 2014 17:52
-
-
Save eliocapelati/8223188 to your computer and use it in GitHub Desktop.
Project 52 weeks saving money
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
end_value = 0 | |
(1..52).each do |value_add| | |
end_value+=value_add | |
puts "On Week #{value_add} you has accumulated #{end_value}" | |
end | |
puts "End Value : #{end_value}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment