Skip to main content

Section 6.10 Loops-WE5-P1

Subgoals for Evaluating a Loop.

  1. Identify loop parts
    1. Determine start condition
    2. Determine update condition
    3. Determine termination condition
    4. Determine body that is repeated
  2. Trace the loop
    1. For every iteration of loop, write down values

Subsection 6.10.1

Exercises Exercises

1.
Q14: Put the code in the right order to create a program that will prompt a user to enter an integer which is NOT a negative multiple of 5. If the user enters a negative multiple of 5, the program should ask for another value.
You have attempted of activities on this page.