Loop Statments

0 comments

Weekly tasks or assignments (Individual or Group Projects) will be due by Monday, and late submissions will be assigned a late penalty in accordance with the late penalty policy found in the syllabus. NOTE: All submission posting times are based on midnight Central Time.

Loop statements are another type of control used in programming that allow programmers to interrupt the structural flow of a program. Looping statements allow a program to repeat a set of instructions for a predetermined number of times or until a specified condition is met. The common loops that are used are as follows:

  • For loop
  • While loop
  • Do-while loop
  • Nested loop

For this assignment, you will complete the loop template, as follows:

  1. Download the Loop Template by clicking (ASttachment)
  2. Examine the loop statements in the Code Sample column of the template.
  3. Identify the loop type used in the Loop Type column of the template.
  4. In the Explanation column, answer the following:
    • What does this loop do?
    • When would this loop be used?

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}