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

学习 时间:2026-11-18 11:15:35 阅读:5908
编写一个子过程,输入两个数,从小到大排序后输出

最佳回答

称心的羽毛

传统的发夹

2026-11-18 11:15:35

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);elseprintf("the num after arraged are :%5d%5d\n",&b,&a);

最新回答共有2条回答

  • 义气的黑夜
    回复
    2026-11-18 11:15:35

    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);elseprintf("the num after arraged are :%5d%5d\n",&b,&a);

上一篇 圆心角,弦,弧三者间的关系

下一篇 英语6.Having a trip abroad is certainly good for the old peopl