新手学C语言

新手学C语言

5 (5人评价)

新手学C语言02的笔记

相关课时: 笔记详情:

按大小顺序输出

#include<studio.h>

int main()

{

                int a=10;

                int b=3;

                int c=5;

                int temp

                if(a>b)

                [     temp=a;a=b;temp=b;

                ]

                if(b>c)

                 [temp=b,b=c;temp=c;

                 ]

                 if(a>c)

                 [temp=a;a=c;temp=c;

                 ]

                 printf("%d,%d,%d\n",a,b,c);

}

 

0 0

你感兴趣的课程

5万+浏览/ 1767学员/ 3.8评分
免费
5万+浏览/ 926学员/ 4.5评分
免费