作业帮 > 综合 > 作业

编写一个子过程,输入两个数,从小到大排序后输出

来源:学生作业帮 编辑:搜狗做题网作业帮 分类:综合作业 时间:2024/06/24 10:57:05
编写一个子过程,输入两个数,从小到大排序后输出
编写一个子过程,输入两个数,从小到大排序后输出
int a,b;
printf("please enter two num\n");
scanf("a=%d,b=%d\n",&a,&b);
if(a>b)
printf("the num after arraged are :%5d%5d\n",&a,&b);
else
printf("the num after arraged are :%5d%5d\n",&b,&a);