Skip to content

Instantly share code, notes, and snippets.

@programmingfaster0226
Created January 18, 2018 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save programmingfaster0226/e04649166aa58a13c3bb2be63438e229 to your computer and use it in GitHub Desktop.
Save programmingfaster0226/e04649166aa58a13c3bb2be63438e229 to your computer and use it in GitHub Desktop.
#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