以下是引用wslhnsng在2009-11-4 19:47:01的发言:
#include<stdio.h>
void main()
{int a,b,c,t;
printf("input three num");
scanf("%d%d%d",&a,&b,&c);
if(a<b){k=a;a=b;b=k;}
if(a<c) {k=a;a=c;c=k;}
if(b<c){k=b;b=c;c=k;}
printf("%d%d%d",a,b,c);
...
你的K是从哪跑出来的应该是T吧~
#include<stdio.h>
void main()
{int a,b,c,t;
printf("input three num");
scanf("%d%d%d",&a,&b,&c);
if(a<b){k=a;a=b;b=k;}
if(a<c) {k=a;a=c;c=k;}
if(b<c){k=b;b=c;c=k;}
printf("%d%d%d",a,b,c);
...