Computer Science, asked by rohitgoa123, 6 months ago

Write an algorithm to find the product of digits of a two-digit number​

Answers

Answered by sharanyalanka7
1

Answer:

Explanation:

General Algorithm for product of digits in a given number:

Repeat the next two steps till the number is not 0. Get the rightmost digit of the number with help of remainder '%' operator by dividing it with 10 and multiply it with product. Divide the number by 10 with help of '/' operator. Print or return the product.

please mark as a brainliest

Answered by Bhanubrand
4

Explanation:

General Algorithm for product of digits in a given number:

Repeat the next two steps till the number is not 0. Get the rightmost digit of the number with help of remainder '%' operator by dividing it with 10 and multiply it with product. Divide the number by 10 with help of '/' operator. Print or return the product.

Similar questions