simple counter
C
code posted
by
rothi
created at 08 May 07:21, updated at 08 May 17:25
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
MAX = 50 def main: count = 0 while count < MAX: if count % 2 == 0: print("The number", count, "is even!") else: print("The number", count, "is odd!") count += 1 print("Thank you for playing") main() |
250 Bytes in 2 ms with coderay