-
-
Save programmingfaster0226/e04649166aa58a13c3bb2be63438e229 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<conio.h> | |
int main() | |
{ | |
int i,n,f=0,s=1; | |
n=f+s; | |
printf("%d\t%d\t%d",f,s,n); | |
start: | |
for (i=1;i<=50;i++) | |
{ | |
f=s; | |
s=n; | |
n=f+s; | |
if (n<300) | |
{ | |
printf("\t%d",n); | |
goto start; | |
} | |
else goto last; | |
} | |
last: | |
getch(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment