

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