解答:
#include <stdio.h>
int main() {
int a,b;
int* p, *q;
scanf("%d%d", &a, &b);
p = &a;
q = &b;
if(*p>*q)
printf("%d %d\n", *p, *q);
else
printf("%d %d\n", *q, *p);
return 0;
}
解答:
#include <stdio.h>
int main() {
int a,b;
int* p, *q;
scanf("%d%d", &a, &b);
p = &a;
q = &b;
if(*p>*q)
printf("%d %d\n", *p, *q);
else
printf("%d %d\n", *q, *p);
return 0;
}