#include<stdio.h>
#include<stdlib.h>
#define _CRT_SECURE_NO_WARNINGS
int main()
{
float a, b, c,t;
printf("please enter three figuer");
scanf_s("%f,%f,%f", &a, &b, &c);
if (a > b)
{
t = a; a = b; b = t;
}
if (a > c)
{
t = a; a = c; c = t;
}
if (b > c)
{
t = b; b = c; c = t;
}
printf( " %f,%f,%f\n",a,b,c);
return 0;
}
题目是,输入三个数按从小到大顺序输出