Skip to content

Instantly share code, notes, and snippets.

@Adobe-Android
Created October 9, 2023 16:07
Show Gist options
  • Save Adobe-Android/410c10431a5a10e62971ccc19da4acd5 to your computer and use it in GitHub Desktop.
Save Adobe-Android/410c10431a5a10e62971ccc19da4acd5 to your computer and use it in GitHub Desktop.
Divisibility Test
#!/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