C++ response 1 steven

jrsmith91

simple respond to this classmates post with 150 words


The kinds of loops discussed in this module are while, for, and do while. The while and for statements are explained through pretest loops. Pretest loops evaluate the condition before the loop body. The do while statement is a posttest loop.Posttest loops take place after the loop body. I find the for statement easiest because it seems like a shortcut. There is less coding involved and it seems to get straight to the point. Although all loops essentially get the same results, there may be times the posttest loop is a better choice. With a pretest loop, the instructions may never be processed because the instructions come before the body. With a posttest loop, the instructions are processed at least once because the conditions are evaluated after the body.

    • 9 years ago
    • 3
    Answer(9)

    Purchase the answer to view it

    NOT RATED
    • ComputerScienceAssignment.docx

    Purchase the answer to view it

    NOT RATED

      Purchase the answer to view it

      NOT RATED

        Purchase the answer to view it

        NOT RATED

          Purchase the answer to view it

          NOT RATED

            Purchase the answer to view it

            NOT RATED

              Purchase the answer to view it

              NOT RATED

                Purchase the answer to view it

                NOT RATED

                  Purchase the answer to view it

                  NOT RATED