以下程序的运行结果为: public class abc { public static voi
2023-12-01JAVA复习
以下程序的运行结果为: public class abc { public static void main(String args[ ]) { int i, s = 0 ; int a[ ] = { 10 , 20 , 30 , 40 ,50 , 60 , 70 , 80 , 90 }; for ( i = 0 ; i < a.length ; i ++) if ( a[i]%4 = = 0 ) s += a[i] ; System.out.println("s="+s); } }
A.200
B.180
C.120
D.60
正确答案是A
