题目:交换两个绝对值不超过1000的整数A,B的值
#include<stdio.h>
int main()
{
int A,B,T;
A>=-1000&&A<=1000;
B>=-1000&&B<=1000;
scanf("%d%d",&A,&B);
T=A;A=B;B=T;
printf("%d%d\n",A,B);
return 0;
}
题目:交换两个绝对值不超过1000的整数A,B的值
#include<stdio.h>
int main()
{
int A,B,T;
A>=-1000&&A<=1000;
B>=-1000&&B<=1000;
scanf("%d%d",&A,&B);
T=A;A=B;B=T;
printf("%d%d\n",A,B);
return 0;
}
#include <stdio.h>
int main()
{
int a,b,t;
scanf("%d %d",&a,&b);
t = a;
a = b;
b = t;
printf("%d %d",a,b);
return 0;
}