Computer Science, asked by anaghadevadas0084, 2 months ago

find the product of all the digits of a number python program​

Answers

Answered by ranamotars77
0

answer :

# Take input from user

num = int(input("Enter any number : "))

temp = num

product = 1;

while(temp != 0):

   product = product * (temp % 10);

   # Remove last digit from temp.

   temp = int(temp / 10)

print("\nProduct of all digits in", num, ":", product)

please mark me billant

Similar questions