Skip to content

Instantly share code, notes, and snippets.

@eliocapelati
Created January 2, 2014 17:52
Show Gist options
  • Save eliocapelati/8223188 to your computer and use it in GitHub Desktop.
Save eliocapelati/8223188 to your computer and use it in GitHub Desktop.
Project 52 weeks saving money
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