InterviewSolution
Saved Bookmarks
| 1. |
Write an algorithm to enter a number and print the product of its digits |
|
Answer» C program to find the product of DIGITS of a number using a LOOP: #include int main() { int num, rem, prod = 1; printf("Enter a number: "); scanf("%d", &num); while(num != 0) { |
|