Question: Given the following program. What will be printed out for the answer if the user enters 36 as the input? /* *hw6_1.c */ #include int

 Given the following program. What will be printed out for the

Given the following program. What will be printed out for the answer if the user enters 36 as the input? /* *hw6_1.c */ #include int fun1(int a): int fun2(int a): int fun3(int a): int main(void){ int a: int b: printf ("'Enter an integer: ") scanf("%d", &a): b = fun1 (a): printf("answer is: %d", b): return 0: } int fun1(int b){ int c: c = fun2(b) + fun3(b): return c: } int fun2(int d){ return(d % 10): } int fun3(int e){ int f: f = (int)(e /10.0) % 10: return f: }

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!