CSCI 261 - Programming Concepts - Spring 2022

Lab 1D - Holy Loops Batman!

This lab is due by Tuesday, February 01, 2022, 11:59 PM.
As with all labs you may, and are encouraged, to pair program a solution to this lab. If you choose to pair program a solution, be sure that you individually understand how to generate the correct solution.


Na na na


Take the improper code from Lecture 04 Slide 11 and rewrite it using a

  1. while loop
  2. do-while loop
  3. for loop

Your program should produce the same output duplicated three times but written using three different structures.


Lab Submission


Submit your main.cpp file(s).

You will submit your solution to this lab with the rest of Set1. Detailed instructions for doing this are posted in Assignment 1.


This lab is due by Tuesday, February 01, 2022, 11:59 PM.
As with all labs you may, and are encouraged, to pair program a solution to this lab. If you choose to pair program a solution, be sure that you individually understand how to generate the correct solution.