a=int(input())
b=int(input())
s=1
for i in range(a,b+1):
s*=i
print(s)
#1
a=int(input("a="))
b=int(input("b="))
for i in range(b,a-1,-1):
if i%2>0:
print(i)
задание 2 :
a= int (input())
b= int (input())
if a > 0: f = 1
for i in range(2,a+1):
f *= i
print(f)
if b > 0: f1 = 1
for i in range(2,b+1):
f1 *= i
print(f1)
f2=f-f1
print(f2)
Задание 1 :
result = [x for x in range(b,a) if x % 2 == 1]
result=reverse()
for x in result: print(x)
a=int(input())
b=int(input())
s=1
for i in range(a,b+1):
s*=i
print(s)
#1
a=int(input("a="))
b=int(input("b="))
for i in range(b,a-1,-1):
if i%2>0:
print(i)
задание 2 :
a= int (input())
b= int (input())
if a > 0: f = 1
for i in range(2,a+1):
f *= i
print(f)
if b > 0: f1 = 1
for i in range(2,b+1):
f1 *= i
print(f1)
f2=f-f1
print(f2)
Задание 1 :
a= int (input())
b= int (input())
result = [x for x in range(b,a) if x % 2 == 1]
result=reverse()
for x in result: print(x)