首页 > 代码库 > 07:输出浮点数

07:输出浮点数

#include<iostream>#include<cstdio>#include<cstdlib>#include<cmath>#include<algorithm>#include<cstring>using namespace std;int main(){double a; cin>>a; printf("%f\n%0.5lf\n%e\n%g",a,a,a,a);return 0;}

 

07:输出浮点数