Computer Science, asked by dharmapadamati426, 3 months ago

8. What will be the output of the following program?
#include <stdio.h>
int fun(int n) {
if(n!=0) {
return n - fun(n-5);
} else {
return n;
}
int main() {
int n = 10, Z,
z = fun(n);
printf("%d", z);​

Answers

Answered by purveshKolhe
2

Answer:

The output will be:

5

hope it helps

Similar questions