#include<stdio.h>
void main()
{
int a,b,c,d;
printf("Please input the three integers separated by commas:\n");
scanf("%d,%d,%d",&a,&b,&c);
if(a>b)
{ d=a;
a=b;
b=d;
}
if(a>c)
printf("%d,%d,%d\n",c,a,b);
else
if(b>c)
printf("%d,%d,%d\n",a,c,b);
else
printf("%d,%d,%d\n",a,b,c);
}

排序算法与数据结构应用
本文探讨了排序算法和数据结构的基本概念、实现方法及在实际应用中的优化策略。
5万+

被折叠的 条评论
为什么被折叠?



