Multiple Choice
Select the statement that correctly completes the loop in this code snippet.
Int years = 20;
Double balance = 10000;
While (years > 0)
{
__________
Double interest = balance * rate / 100;
Balance = balance + interest;
}
A) years++;
B) years--;
C) balance++;
D) balance--;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q49: Suppose you must design a program to
Q50: What are the values of i and
Q51: When hand-tracing a portion of code, which
Q52: What will be the output of the
Q55: What are the values of i and
Q56: A loop inside another loop is called:<br>A)
Q57: What is the sentinel value in the
Q58: The code snippet below checks whether a
Q59: What is the output of the following
Q105: Which of the following statements is correct