求绝对值
#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 阅读(134) 评论(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 阅读(134) 评论(0) 编辑 收藏 举报