have a look at it:C语言编程:输入两个数,按由小到大输出。
来源:百度文库 编辑:高校问答 时间:2024/05/29 20:02:14
#include"stdio.h"
main()
{
float i,j;
printf("input two number:");
scanf("%f%f",&i,&j);
if(i>j)
printf("\n%f %f",j,i);
else
printf("\n%f %f",i,j);
}