Skip to main content
Engineering LibreTexts

16: Counting Loops

  • Page ID
    10344
    • 16.1: For Loop
      There are two commonly used test before loops in the iteration (or repetition) category of control structures. They are: while and for. This module covers the: for.
    • 16.2: Circular Nature of the Interger Data Type Family
      There are times when character and integer data types are lumped together because they both act the same (often called the integer family). Maybe we should say they act differently than the floating-point data types. The integer family values jump from one value to another.
    • 16.3: Formatting Output
      Formatting of output is handled in different ways in the various languages used today. Many programming languages have different formatting instructions for the standard output device which is usually the monitor (going to a DOS black screen output box) versus using the monitor as a Graphical User Interface (GUI). File storage output is often handled similarly to the standard output device.
    • 16.4: Nested For Loops
      In our example we nested if then else control structures. Nesting could have an if then else within a while loop. Thus, the concept of nesting allows the mixing of the different categories of control structures.
    • 16.5: Practice 15 Counting Loops