C语言:输入三个整数x,y,z,请把这三个数由小到大输出

#include <stdio.h>

int main(void)
{
	int a = 0;
	int b = 0;
	int c = 0;
	int temp = 0;
	printf("请输入三个整数,以空格隔开,最后点击enter键结束!\r\n");
	scanf("%d",&a);
	scanf("%d",&b);
	scanf("%d",&c);
	if(a>b)
	{
		temp = a;
		a = b;
		b = temp;
	}

	if(b>c)
	{
		temp = b;
		b = c;
		c = temp;
	}
	if(a>b)
	{
		temp = a;
		a = b;
		b = temp;
	}
	printf("%d<%d<%d \r\n",a,b,c);
	return 0;
}
—— 完 ——