大水题

http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=996
输出两个数之间差的绝对值
#include<stdio.h>
int main(){
   long long a,b;
    while(scanf("%ld%ld",&a,&b)!=EOF){
    if(a>b)printf("%ld\n",b-a);判断大小,决定输出哪个
    else printf("%ld",a-b);
   
}
    return 0;
    }

posted @ 2013-02-28 18:57  L kill  阅读(90)  评论(0编辑  收藏  举报