VUSuperior Chat Room

Thursday, 19 February 2015

CS201 Introduction to Programming Graded Discussion Board (GDB) Solution February 19, 2015

The purpose of a high level language is to form it straightforward for an individual to inform a laptop what to try to to. though one iteration construct would be spare for the pc, C++'s three constructs build it easier on the person by rental them specific their intent. this can be sensible once writing code, however even additional necessary once maintaining it.

The do-while loop tells United States that the person desires the loop to execute a minimum of once. The whereas loop tells United States that it would be skipped altogether. The "for" loop lets United States isolate the iteration logic from the code that executes throughout every iteration.

I use the "for" loop most frequently, and not only for straightforward counter loops. Most loops extremely do have some variety of setup logic, a loop take a look at, and a step to maneuver you to ensuing iteration. If a loops has a minimum of a pair of of those three, then i take advantage of the
for construct.

Mr. ABC as an example would favor just one loop kind. which is for loop.

0 comments:

Post a Comment