求绝对值
#include<stdio.h>
#include<math.h>
int main( )
{
double t;
while(scanf("%lf",&t)!=EOF)
printf("%.2lf\n",fabs(t));
return 0;
}
posted on 2011-04-28 11:09 more think, more gains 阅读(141) 评论(0) 收藏 举报
#include<stdio.h>
#include<math.h>
int main( )
{
double t;
while(scanf("%lf",&t)!=EOF)
printf("%.2lf\n",fabs(t));
return 0;
}
posted on 2011-04-28 11:09 more think, more gains 阅读(141) 评论(0) 收藏 举报