#include<iostream>
#include <iomanip>
using namespace std;
int main()
{
int a,b;
int c;
float e;
float f;
a=319;
b=201;
e=0.1314;
c=a+b;
cout<<c<<endl;
f=c+e;
cout<<setprecision(7)<<f<<endl;
return 0;
}
执行结果我想大家都知道,hhh
#include<iostream>
#include <iomanip>
using namespace std;
int main()
{
int a,b;
int c;
float e;
float f;
a=319;
b=201;
e=0.1314;
c=a+b;
cout<<c<<endl;
f=c+e;
cout<<setprecision(7)<<f<<endl;
return 0;
}
执行结果我想大家都知道,hhh