Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions ex004.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment thread
Let0Pda marked this conversation as resolved.