![](https://lstatic.shangxueba.com/sxbzda/h5/images/m_q_title.png)
[主观题]
阅读下列算法,回答: Start of the algorithm(算法开始) (1)输入N的值; (2)设 i 的值为1; (3)如果
阅读下列算法,回答: Start of the algorithm(算法开始) (1)输入N的值; (2)设 i 的值为1; (3)如果 i<=n,则执行第(4)步,否则转到第(7)步执行; (4)计算 sum + i,并将结果赋给sum; (5)计算 i+1,并将结果赋给i; (6)返回到第3步继续执行; (7)输出sum的结果。 end of the algorithm(算法结束)> A、不能正确地计算sum=1+2+3+4+…+N
B、能够正确地计算sum=1+2+3+4+…+N
C、能够正确地计算sum=1+2+3+4+…+(N-1)
D、能够正确地计算sum=1+2+3+4+…+(N+1)
![](https://lstatic.shangxueba.com/sxbzda/h5/images/tips_org.png)