This code snippet is intended to calculate the balance of an account after twenty years of gaining interest. Select the statement that correctly completes the loop.

int years = 20;
double balance = 10000;
while (years > 0)
{
__________
double interest = balance * rate / 100;
balance = balance + interest;
}

Q&A Education