Question: In C programming.........Write a function which returns product of even digits of a number. If I input 246 the output should be 48. If I
In C programming.........Write a function which returns product of even digits of a number.
If I input 246 the output should be 48.
If I input 135 the output should be 0.
Function prototype :
int product_even_digits(int n);
Main method
int main()
{
int n; scanf("%d", &n); printf("Product even digits from %d is %d", n, product_even_digits(n) ); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
