Problem : 2003 ( 求绝对值 ) Judge Status : Accepted
RunId : 5995487 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
RunId : 5995487 Language : C Author : qq1203456195
Code Render Status : Rendered By HDOJ C Code Render Version 0.01 Beta
1 #include <stdio.h> 2 int main() 3 { 4 double r; 5 while (scanf("%lf",&r)!=EOF) printf("%.2lf\n",r>0?r:-r); 6 return 0; 7 }