如题所述
#include<stdio.h>
main()
{
int a,b;
printf("Input 2 integers\n");
scanf("%d%d", &a,&b);
printf("%d\n",a>b?a-b:b-a);
}
main()
{
int a,b;
printf("Input 2 integers\n");
scanf("%d%d", &a,&b);
printf("%d\n",a>b?a-b:b-a);
}
温馨提示:答案为网友推荐,仅供参考