#include<bits/stdc++.h>
using namespace std;
int main()
{
int n=1,i=1,qs;
double n1,n2; cout<<“运算次数:”;
cin>>qs;
n1=1.01;
n2=0.99;
cout<<" a b"<<endl;
cout<<setw(18)<<n1<<’ ‘<< setw(15)<<n2<<endl;
while(i<=qs)
{
cout<<setw(4)<<i<<’ ‘;
n1=n1n1;
n2=n2
n2;
cout<<setw(15)<<n1<<’ '<<setw(15)<<n2<<endl;
i++;
}
return 0;
}

代码运行效果截图
蝴蝶效应计算源码

相关文章:

  • 2021-12-25
  • 2021-10-03
  • 2021-12-05
  • 2021-04-29
  • 2021-08-27
  • 2021-12-21
  • 2022-02-17
猜你喜欢
  • 2021-09-18
  • 2021-09-02
  • 2021-10-31
  • 2022-01-12
  • 2021-07-18
  • 2022-12-23
  • 2021-08-30
相关资源
相似解决方案