Biology Forums - Study Force

Science-Related Homework Help Computer Studies Topic started by: Oughto on Dec 17, 2016



Title: How many times will the following for loop be executed?for (int count = 10; count <= 21; count++) ...
Post by: Oughto on Dec 17, 2016
How many times will the following for loop be executed?

for (int count = 10; count <= 21; count++)
   System.out.println("Java is great!");

A) 12
B) 0
C) 10
D) 11


Title: Re: How many times will the following for loop be executed?for (int count = 10; count <= 21; ...
Post by: bio_man on Dec 17, 2016
Content hidden


Title: Re: How many times will the following for loop be executed?for (int count = 10; count &lt;= 21; count++) ...
Post by: Oughto on Jan 31, 2017
makes a lot more sense, thanks for the help