C语言代码:
2003 c
[code]
#include <stdio.h>
int main()
{
double a,temp;
while(scanf("%lf",&a)!=EOF)
{
if(a<0)
{
temp=-a;
}
else
{
temp=a;
}
printf("%.2lf\n",temp);
}
}
[/code]