Date: Mon, 11 Nov 1996 17:40:53 GMT Server: NCSA/1.5 Content-type: text/html Last-modified: Thu, 31 Oct 1996 22:35:40 GMT Content-length: 1721 Solutions to Quiz Three

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.