Solved

Select the Statement That Correctly Completes the Loop in This

Question 54

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions