Computer Science, asked by satvikshubh345, 2 months ago

Write a script to perform the product of 3 numbers entered by the user.
will get reported if answer only for points

Answers

Answered by jai696
4

\huge\red{\mid{\fbox{\tt{Using\: Python\: 3}}\mid}}

def prod(nums):

prod = 1

for n in nums:

prod *= n

return prod

nums = [int(n) for n in input("enter 3 nums: ").split()]

print(f"product: {prod(nums)}")

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions