Find the output of the above program or error, if any.
#include<stdio.h>
#include<conio.h>
int num(int);
int main()
{
int n=9,t;
t=num(n);
printf("\\n the result is %d",t);
getch();
}
int num(int m)
{
int f=0;
if(m==0)
return (f);
else
{
f=f+m+num(m-1);
return (f);
}
}
Reveal answer
Fill a bubble to check yourself