Time:10-10
CodePudding user response:
int result=0 For I=0 I <100 i++ if (I& 1==0) continue; The result +=I
public static void main (String [] args) {int sum=0; For (int I=1; I & lt;=99; I++) {I % 2==0 sum +=? Zero: I; } System. The out. Println (sum); }
int sum=0; for(int i=1; i<100; I++) {If (I % 2==0) {continue; } The sum +=I; } System. Out. Println (" sum: "+ sum);
Page link:https//www.codepudding.com/Backend/59803.html