Use the pointer method to arrange the three numbers from large to small
#include<stdio.h>
int main()
{
int *p;
int a, b, c, t;
scanf("%d%d%d", &a, &b, &c);
if(a < b)
{
p = &a;
t = *p;
a = b;
b = t;
}
if(a < c)
{
p = &a;
t = *p;
a = c;
c = t;
}
if(b < c)
{
p = &b;
t = *p;
b = c;
c = t;
}
printf("%d %d %d", a, b, c);
return 0;
}