ANSWERS: 2
  • "Advice to Incoming Freshman in Computer Science" http://csel.cs.colorado.edu/~brooksbp/fresh-advice.html
  • #include<stdio.h> #include<conio.h> int n; void recfibo(); void main() { printf("**This Program will print first n fibonacci numbers**nn"); printf("enter the value of n: "); scanf("%d",&n); recfibo(); getch(); clrscr(); } void recfibo() { static int i=1 , s1=1,s2=0;; printf("%d ",s1); s1=s1+s2; s2=s1-s2; i++; if (i<=n) { recfibo(); } }

Copyright 2023, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy