241 views

Please log in or register to answer this question.

Related questions

2 votes
2 votes
2 answers
1
1 votes
1 votes
3 answers
2
jverma asked May 23, 2022
1,062 views
#include <stdio.h>int f(int n){ static int r = 0; if (n <= 0) return 1; r=n; return f(n-1) + r;}int main() { printf("output is %d", f(5)); return 0;}Ou...
0 votes
0 votes
0 answers
4