Computer Science, asked by np916872, 5 months ago

W.A.P. to enter a number and print the product of all its digits. using do while loop​

Answers

Answered by Anonymous
1

Answer:

#include <stdio.h>

int main()

{

int Number, Reminder, Product;

printf("\n Please Enter any Number that you wish : ");

scanf("%d", & Number);

for(Product = 1; Number > 0; Number = Number / 10)

{

Reminder = Number % 10;

Product = Product * Reminder;

}

printf(" \n The Product of Digits of a Given Number = %d", Product);

return 0;

}

Similar questions
Math, 11 months ago