Home C Fibonacci Roots program in C Fibonacci Roots program in C / August 03, 2017 Fibonacci Roots program in C Code: #include<stdio.h> int main(){ int a=0,b=1,c=0,n; scanf("%d",&n); while(1){ c=a+b; if(c>=n) goto END; a=b; b=c; } END: printf("%d %d",a,b); return 0; }
No comments