На Python(Цикл):
def mult(num):
for i in range(1, num):
if i % 5 == 0 and i % 2 != 0:
return(i)
mult(50)
На Python(Рекурсия):
if num < 5:
return
if num % 5 != 0 or num % 2 == 0:
return mult(num - 1)
else:
print(num)
Удачи))
На Python(Цикл):
def mult(num):
for i in range(1, num):
if i % 5 == 0 and i % 2 != 0:
return(i)
mult(50)
На Python(Рекурсия):
def mult(num):
if num < 5:
return
if num % 5 != 0 or num % 2 == 0:
return mult(num - 1)
else:
print(num)
return mult(num - 1)
mult(50)
Удачи))