5 nouveaux défis

This commit is contained in:
2022-10-16 18:03:42 +02:00
parent 5d8d6dd6ee
commit 00331e1249
9 changed files with 147 additions and 1 deletions

14
Le retourneur de temps.py Normal file
View File

@@ -0,0 +1,14 @@
ctr = 0
uctr = 0
umax = uctr
while True:
ctr = ctr + 1
if ctr > 1 and sum([int(i) for i in str(uctr)])%7 == 0:
uctr = uctr - 7
else:
uctr = uctr + 2
if uctr > umax:
umax = uctr
print("MAX = ", umax)