Seek absolute valueTime
limit:2000/1000 MS (java/others) Memory limit:65536/32768 K (java/others)
Total submission (s): 83122 Accepted Submission (s): 42511
problem Descriptionthe absolute value of a realistic number.
InputThere are several groups of input data, one for each group, and a real number for each row.
Outputfor each set of input data, output its absolute value, requiring each set of data output a row, the result is reserved two decimal places.
Sample Input
123-234.00
Sample Output
123.00234.00
source code (water problem)
<span style= "FONT-SIZE:18PX;" > #include <stdio.h> #include <math.h>int main () { double A, b; while (scanf ("%lf", &a)!=eof) { b=fabs (a); printf ("%.2lf\n", b); } return 0;} </span>
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
HDU 2003 to find the absolute value