• 2022-05-28
    下面程序段的输出结果是( )。 public class Test public static void main (String[] args) int n=10,result=0; for (int i=1;i<=n;i++) result+=i; System.out.println("result is"+result);
    A: A) result is 55
    B: B) result is 45
    C: C) result is 56
    D: D) result is 54