Full width home advertisement

Post Page Advertisement [Top]

#include<conio.h>
#include<stdio.h>
int main()
{
int a=1,b=1,c=0,i;
clrscr();
printf("%d\t",a);
printf("%d\t",a);
for(i=0;i<=10;i++)
{
c=a+b;
if(c<100)
{
printf("%d\t",c);
}
a=b;
b=c;
}
getch();
}

Output

No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib