Author Question: How many times will the following loop display "Looping!"? for (int i = 20; i > 0; i--) cout (Read 116 times)

EAugust

  • Hero Member
  • *****
  • Posts: 550
How many times will the following loop display "Looping!"?
for (int i = 20; i > 0; i--)
     cout << "Looping!" << endl;

20
19
21
◦ an infinite number of times



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
 

Did you know?

According to the CDC, approximately 31.7% of the U.S. population has high low-density lipoprotein (LDL) or "bad cholesterol" levels.

Did you know?

For high blood pressure (hypertension), a new class of drug, called a vasopeptidase blocker (inhibitor), has been developed. It decreases blood pressure by simultaneously dilating the peripheral arteries and increasing the body's loss of salt.

Did you know?

Fewer than 10% of babies are born on their exact due dates, 50% are born within 1 week of the due date, and 90% are born within 2 weeks of the date.

Did you know?

The calories found in one piece of cherry cheesecake could light a 60-watt light bulb for 1.5 hours.

Did you know?

Signs and symptoms of a drug overdose include losing consciousness, fever or sweating, breathing problems, abnormal pulse, and changes in skin color.

For a complete list of videos, visit our video library