Python:
while True:
try:
number = int(input("Введите число: "))
except:
break
_num = 1
while _num <= number:
if _num % 5 == 0:
print(_num)
_num += 1
Python:
while True:
try:
number = int(input("Введите число: "))
except:
break
_num = 1
while _num <= number:
if _num % 5 == 0:
print(_num)
_num += 1