http://www.cs.wisc.edu/~burnett/cs302/Quizzes/quiz3_sol.html

Solutions to Quiz Three

The quiz itself

Disclaimer: answer key code has not been tested.

  1. For Loops
    	int i, j;
    	for (i = 9; i >= 1; i--) {
    
    	   for (j = i; j <= 9; j++)
    	      cout << j << ' ';
    
    	   cout << endl;
    
    	   if (i != 5)
    	      cout << '*' << end;;
    	}
    
    
  2. Working with Structures.