Created
August 15, 2016 10:42
-
-
Save m-stafford/907c1002d73caf5aa198ff4e016da788 to your computer and use it in GitHub Desktop.
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
count_from = 100 | |
sub_by = 1 | |
iteration = 0 | |
i = 0 | |
while (count_from >= 0): | |
if ((i+1) % 10 == 0): | |
iteration += 1 | |
print(count_from) | |
count_from = (count_from - (sub_by + iteration)) | |
i += 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output: