#pragma warning(disable :4996)
#include <stdio.h>
int main() {
int *p1, *p2, *p, a, b;
printf("请输入两个整数\n");
scanf("%d %d", &a, &b);
p1 = &a;
p2 = &b;
if (a<b)
{
p = p1; p1 = p2; p2 = p;
}
printf("a=%d,b=%d\n", a, b);
printf("MAX = %d,MIN = %d\n", *p1, *p2);