Created
October 9, 2023 16:07
-
-
Save Adobe-Android/410c10431a5a10e62971ccc19da4acd5 to your computer and use it in GitHub Desktop.
Divisibility Test
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
#!/bin/env python3 | |
def main(): | |
dividend = 1500 | |
divisor = 52 | |
limit = 6500 | |
increment_num = 100 | |
while dividend <= limit: | |
# print(dividend) | |
if dividend % divisor == 0: | |
print(dividend) | |
dividend+=increment_num | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment