Answer to Question #225345 in Python for sdfghj

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


1
Expert's answer
2021-08-11T14:17:25-0400
n = int(input('N = '))
res = 1
k = 0
while k < n:
	res *= int(input())
	k += 1
print(res)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS