C语言将两个数从小到达输出。

将两个数从小到达输出。
int main()
{float x,y, ;
scanf( , );
if (x>y)
{t=x;
;
y=t;
}
printf(“The num small to big : ”,x,y);
return 0;
}

int main()
{
float x,y,t;
scanf("%f%f",&x,&y);
if(x>y){
t=x;
x=y;
y=t;
 }
printf("The num small to big :%f %f",x,y);
    return 0;
}

请采纳

温馨提示:答案为网友推荐,仅供参考
第1个回答  2015-06-01
int main()
{
float x,y,t
scanf("%lf%lf",&x&y);
if(x>y)
{
t=x;
else
t=y;
}
printf("the num small to big:%d",t)
return 0;
}
相似回答