【单选题】已知有数组定义: int MyArray[] = {10,20,30,40,50,60,70,80,90,100} ,则以下程序段 : int s = 0 ; for ( int i = 0 ; i < MyArray.length ; i + + ){ if ( i % 2==1 ) s +=MyArray[i] ; } System.out.println( s ); 执行后s的值是(...
【单选题】已知有数组定义:int MyArray[] = {10,20,30,40,50,60,70,80,90,100},则以下程序段: int s = 0 ; for ( int i = 0 ; i < MyArray.length ; i + + ) if ( i % 2==1 ) s=s+ MyArray[i] ; System.out.println( s ); 执行后 s的值是( )