Question #225345

Given an integer N, write a program which reads N inputs and prints the product of the given input integers.by using while loop


Expert's answer

n = int(input('N = '))
res = 1
k = 0
while k < n:
	res *= int(input())
	k += 1
print(res)
LATEST TUTORIALS
APPROVED BY CLIENTS