从键盘上输入3个数,将其按从小到大排序输出。

/*------------------------------------------------------------------------------
从键盘上输入3个数,将其按从小到大排序输出。
------------------------------------------------------------------------------*/
#include 
#include 

int main(){
   int a, b, c, t;
   printf("输入a,b,c:\n");
   scanf("%d%d%d",& a,& b,& c);
   printf("排序前:%d,%d,%d", a, b, c);
   /**********Program**********/



   /**********  End  **********/
   
   printf("排序后:%d,%d,%d\n", a, b, c);
   
   return 0;
}

你可能感兴趣的:(25年准易模拟试卷-C语言部分,C语言,c语言)