编写程序,实现将a、b两个整数的值交换并输出

如题所述

#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);
}
温馨提示:答案为网友推荐,仅供参考
相似回答