• 2021-04-14
    下面代码段的执行结果是
    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]%3 = = 0 ) s += a[i] ;
    System.out.println("s="+s);
  • 举一反三