What will be the output of the following code?
(D) None of the above
Explanation: The loop will run from 0 to 4, thus adding 0+1+2+3+4 = 10. So, the answer will be 10.
Quiz of this Question