求助:三个数按大到小的顺序排列
用小键盘输入老是出错
#include "stdafx.h"
#include <stdio.h>
int main(void)
{
/*定义变量a、b、c*/
int a, b, c, t;
/*输入a、b、c*/
printf("Please enter a b c:");
scanf("%d %d %d",&a,&b,&c);
/*比较大小*/
if (a<b) t=a;a=b;b=t;
if (c>a)
printf(" %d > %d > %d ",c,a,b);
else if(c<b)
printf(" %d > %d > %d ",a,b,c);
else
printf(" %d > %d > %d ",a,c,b);
}