University of Delaware

CISC105 - General Computer Science

Lab #3

Program Looping

  1. Goals

    This lab is an exercise to familiarize you with the C Language concept of Program Looping. You will need to perform the following:

  2. "for" Statement Exercise

    Create a program that displays multiples of 5 from 1 through 100 on the screen each on a separate line. Use a "for" loop statement to accomplish the task. Document your program with a brief description of what it does and how it does it along with a program name, your name, your section number, date, and lab number.

  3. "while" Statement Exercise

    Change the program created above to use a "while" statement to accomplish the task.

  4. "do-while" Statement Exercise

    Change the program created above to use a "do-while" statement to accomplish the task.

    NOTE: It is a good idea to make each of the exercises above a separate program. To save time and keystrokes, once you get the first program to work, just copy it to a new file and edit the new file for the second exercise. Do the same for the third exercise.