Description
Input
Output
Sample Input
Sample Output
#include<stdio.h> #include<math.h> int main() { double x; while(scanf("%lf",&x)!=EOF) { if(x<0) { x =-x; } printf("%.2lf\n",x); } return 0; }
B题 - 求绝对值
原文:http://www.cnblogs.com/hfc-xx/p/4903419.html