ashwini jayaraman
Member level 2
- Joined
- Jan 17, 2013
- Messages
- 49
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,601
int rec(int n1)
{
int x=8;
if(n1<=80)
{
int n1=x+rec(n1);
return(n1);
}
else
return 0;
}
#include<stdio.h>
int rec(int n);
void main()
{
int n;
printf("enter no");
scanf("%d",&n);
rec;
printf("%d",rec);
}
I want 8*10= 80 to be printed!!!!
{
int x=8;
if(n1<=80)
{
int n1=x+rec(n1);
return(n1);
}
else
return 0;
}
#include<stdio.h>
int rec(int n);
void main()
{
int n;
printf("enter no");
scanf("%d",&n);
rec;
printf("%d",rec);
}
I want 8*10= 80 to be printed!!!!