【单选题】下面程序段的输出结果是( )。 public class Test { public static void main (String[] args) { int sum=0; for ( int i=0;i<=100 i++) sum+=i System. out. println ('sum='+sum); } }
【单选题】下面程序段的输出结果是( )。 public class Test { public static void main (String[) args) { int a,b; for(a=1,b=1;a<=100;a++) { if (a>=10 ) break; if (b%2==1) { b+=2; continue; } } System. out. pdntln(A); } }