链接:
https://acm.hdu.edu.cn/showproblem.php?pid=2003
#include<stdio.h>
#include<math.h>
int main()
{ double a;
while(scanf("%lf",&a)!=EOF)
{
double s=abs(a);
printf("%.2lf\n",s);
}
return 0;
}
链接:
https://acm.hdu.edu.cn/showproblem.php?pid=2003
#include<stdio.h>
#include<math.h>
int main()
{ double a;
while(scanf("%lf",&a)!=EOF)
{
double s=abs(a);
printf("%.2lf\n",s);
}
return 0;
}