Home > Back-end >  2.05 why not round
2.05 why not round

Time:12-25

# include
# include
# define OP 0
Int main ()
{
# if the OP
Double a;
While (the scanf (" % lf ", & a)!=(EOF)
Printf (" % 1 f \ n ", a);
# the else
Double a, b;
While (the scanf (" % lf ", & a)!=(EOF)
{
B=(int) (a * 10 + 0.5)/10.0;
Printf (" % 1 f \ n ", a);
}
# endif
return 0;
}
  • Related