From 092cf7b87d62e6f2b2bc94e044d30245e24c0078 Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Wed, 30 Aug 2023 09:47:46 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- ex004.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ex004.py b/ex004.py index a9c4e4f..02a00ac 100644 --- a/ex004.py +++ b/ex004.py @@ -4,9 +4,8 @@ ''' + n = int(input("n = ")) -index = 0 -while index <= n: +for index in range(n + 1): if (index % 10) % 4 == 0: # (index % 10) - деление числа на 10 ЭТО ПОСЛЕДНЯЯ цифра числа, print(index, end=" ") - index += 1