Biology Forums - Study Force

Science-Related Homework Help Computer Studies Topic started by: pagnor on Sep 3, 2017



Title: How many times will the following loop display "Hello"?for (int i = 0; i <= 20; i++) ...
Post by: pagnor on Sep 3, 2017
How many times will the following loop display "Hello"?

   for (int i = 0; i <= 20; i++)
       cout << "Hello!" << endl;

A) 20
B) 19
C) 21
D) An infinite number of times


Title: Re: How many times will the following loop display "Hello"?for (int i = 0; i <= 20; ...
Post by: jecko on Sep 3, 2017
Content hidden


Title: Re: How many times will the following loop display &quot;Hello&quot;?for (int i = 0; i &lt;= 20; i++) ...
Post by: pagnor on Dec 23, 2017
This website is legit, thank you!