На Python:
a, b = map(int, input().split())
result = 1
while a <= b:
result *= a
a += 1
print(result)
На Python:
a, b = map(int, input().split())
result = 1
while a <= b:
result *= a
a += 1
print(result)