5 nouveaux défis
This commit is contained in:
14
Le retourneur de temps.py
Normal file
14
Le retourneur de temps.py
Normal 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)
|
||||
Reference in New Issue
Block a user