Computer Science, asked by AnveshaSingh1426, 5 months ago

write a program to input a number print the product of all digits​

Answers

Answered by MsLiquor
3

Input a number from user. Store it in some variable say num . Initialize another variable to store product i.e. product = 1 .

...

Logic to find product of digits of a number

Extract last digit of the given number.

Multiply the extracted last digit with product.

Remove the last digit by dividing number by 10.

♥️plz mark me as brainleast ♥️

Similar questions