University of Iowa Computer Science Department

Quiz 05


1. Write a for loop that prints the even numbers from 2 to 22, one per line.

2. What is the main difference between a while loop and a do-while loop.
UI CLAS CRA ACM Valid CSS! Valid XHTML 1.0 Transitional Level Double-A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0 Cynthia tested
| Modified: .