#include <stdio.h>
#include <conio.h>
int main()
{
int a = 0;
int b = 1;
int i,sum;
for(i = 0;i<20;i++)
{
sum = a+b;
printf("%d\n",sum);
a = b;
b = sum;
}
}
#include <conio.h>
int main()
{
int a = 0;
int b = 1;
int i,sum;
for(i = 0;i<20;i++)
{
sum = a+b;
printf("%d\n",sum);
a = b;
b = sum;
}
}
No comments:
Post a Comment