首页 > 试题广场 >

以下程序的输出结果为

[问答题]

以下程序的输出结果为

public class Test{

public static void main(String[] args){

int a=18,b=5,c=6;

int m=0;

if(a>b)

if (a>c) m=a;

else m=c;

else

if(b>c) m=b;

else m=c;

System.out.println(m);

}

}

18
发表于 2017-05-17 00:23:36 回复(0)