/* Fibonacci by Recursion */
printf("Type any value : ");
printf("\nNth value: %d",fib(getche()-'0'));
int fib(int n)
In function 'fib':Line 13: error: 'x' undeclared (first use in this function)Line 13: error: (Each undeclared identifier is reported only onceLine 13: error: for each function it appears in.
check it now !!!
Line 7: error: `getche' undeclared (first use this function)
oh, I forgot to include conio.h
The program is compiled successfully but as we run the program its returning the same number we asked for series
write a program to clear screen with out using clrscr();funtion