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

学习 时间:2026-06-04 19:31:41 阅读:20
编写一个子过程,输入两个数,从小到大排序后输出

最佳回答

自信的早晨

无限的雪碧

2026-06-04 19:31:41

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-06-04 19:31:41

    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