C program to calculate Sum and Product of all digits of an integer number
This program will read an integer number from the user and calculate the Sum and Product of all digits, in this program we will extract each digit by dividing and getting remainder with 10, add digits in Sum and Multiply the digit in Product.
Sum and Product of all digits of a Number using C program
Using User Define Function
Output
need an explanation for this answer? contact us directly to get an explanation for this answer