下面程序段的输出结果是()。public class Test {public static void main (String[] args) {int
下面程序段的输出结果是()。 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); } }
A.sum =5050
B.sum=4950
C.sum=0
D.sum=100