2.Input an integer and find the product of its digits.
Answers
Answered by
1
Answer:
Logic to find product of digits of a number:
Multiply the last digit (last_digit) found above with prod i.e. prod= prod* last_digit. Remove last digit by dividing the number by 10 i.e. num = num / 10. Repeat steps 3-5 until the number becomes 0. In the last, you will get the product of the digits of the input number
thank you ❤️
I hope it helps you
Mark brainless for another question answers ☺️
Similar questions