June 5, 2007

okay, today, i passed my basic thoery test(driving) and my advanced final theory trial test. So, i booked for my final theory test:) Just finished my c-language homework: fibonacci series in a recursive loop:

#include
main()
{int fibo(int n);
int fib, n;
clrscr();
printf("\n\nFibonacci Series:");
printf("\nEnter the number of term to show");
scanf("%d", &n);
fib=fibo(n);
printf("The number is %d", fib);
getch();
return(0);}
int fibo(int n)

{if(n==1n==2)
{return(1);}
else{return fibo(n-1)+fibo(n-2);}}

It's such a weird hour to blog... i slept in the evening...

No comments:

RiDdLe:::SoLvE mE1!1!1

You cannOt see my hair, thouGh i'm not bAld. YOu Guess (who). Achooooo!!!YOu Get what i Am saying??