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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!