

MCQOPTIONS
Saved Bookmarks
1. |
Consider the following iterative solution to find the sum of first n natural numbers: Which of the following lines completes the above code? |
A. | sm = i |
B. | sm += i |
C. | i = sm |
D. | i += smView Answer |
Answer» C. i = sm | |