subject

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 = 1;
while (years > 0)
{

double interest = balance * rate / 100;
balance = balance + interest;
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:00
In which job role will you be creating e-papers, newsletters and preiodicals
Answers: 1
question
Computers and Technology, 25.06.2019 04:30
What is the purpose of network permissions? a)to control access to network resources b)to convert to wireless networking c)to enable the installation of nics d)to reduce operating costs
Answers: 1
question
Computers and Technology, 25.06.2019 09:30
Which resource produces the cleanest energy? -coal -gasoline -oil -wind
Answers: 1
question
Computers and Technology, 25.06.2019 17:00
Nasa’s long term goal is for travel in space to be as as travel across the atlantic. however, we are away from that.
Answers: 1
You know the right answer?
This code snippet is intended to calculate the balance of an account after twenty years of gaining i...
Questions
question
Mathematics, 18.12.2020 04:10
question
Advanced Placement (AP), 18.12.2020 04:10
question
Biology, 18.12.2020 04:10
question
Physics, 18.12.2020 04:10
Questions on the website: 13722363