#include <stdio.h>
#include<math.h>
int main()
{
double a,b;
scanf("%lf %lf",&a,&b);
printf("%.2lf %.2lf",a,b);
return 0;
}
输入两个浮点数据,输出的形式为保留小数点后两位
最新推荐文章于 2022-09-20 13:22:10 发布
#include <stdio.h>
#include<math.h>
int main()
{
double a,b;
scanf("%lf %lf",&a,&b);
printf("%.2lf %.2lf",a,b);
return 0;
}