下列程序执行的结果是______。 public class exl4 { public static void main(String[] args) { int

admin2008-01-11  24

问题 下列程序执行的结果是______。     public class exl4     {           public static void main(String[]  args)           {                 int a=3;                 int b=5;                 int c=4;                 if ( ( ! (a==b)) && (a!=b) && (a<b| |b<a) )                      System.out.println ("good!");                 else if {a*a+c* c==b*b]                      System. out.println (b);                 else                      System.out.println (a+c);           }      }

选项 A、7
B、5
C、25
D、good!

答案D

解析
转载请注明原文地址:https://kaotiyun.com/show/nbnp777K
0

最新回复(0)