//if语句; public class Example3_2 { public static void main(String[] args) { //创建变量; int a=5,b=5,c=7,t=0; //if语句; if (a>b) t=a;a=b;b=t; if(c>a) t=a;a=c;c=t; if(c<b) t=b;b=c;c=t; System.out.println("a:"+a+"b:"+b+"c:"+c); } }
#java2书本:Example3_1://if语句;
最新推荐文章于 2024-08-19 16:01:20 发布