Product of Numbers from M to N
This Program name is Product of Numbers from M to N. Write a Python program to Product of Numbers from M to N, it has two test cases
The below link contains Product of Numbers from M to N question, explanation and test cases
https://drive.google.com/file/d/1_esJ7Hmvq9C-MQ-Y5I2y-157JwVDHf_v/view?usp=sharing
We need exact output when the code was run
M = int(input())
N = int(input())
product=1
for i in range(M, N + 1):
product*=i
print(product)
Comments
Leave a comment