Created
July 8, 2014 11:09
-
-
Save eljojo/806ad5fe0f4ed618add6 to your computer and use it in GitHub Desktop.
savings per year
This file contains hidden or 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
$savings_per_year = 300.0 | |
seconds_in_a_year = 3600 * 24 * 365 | |
$money = $savings_per_year/seconds_in_a_year | |
elapsed_seconds = 0.0 | |
loop do | |
puts("you just lost %.9f euros by not switching your electricity company" % ((elapsed_seconds += 1) * $money)) | |
sleep 1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment