#include <iostream>
using namespace std;
int main()
{
int a=1,b=1;
cout << a << " " ;
while (b<100)
{
cout << b << " ";
b=a+b;//向前移一位
a=b-a; //利用差值得尾数
}
return 0;
}
#include <iostream>
using namespace std;
int main()
{
int a=1,b=1;
cout << a << " " ;
while (b<100)
{
cout << b << " ";
b=a+b;//向前移一位
a=b-a; //利用差值得尾数
}
return 0;
}