Test #4

Mon NOV 20, 2000

C++ How to Program, by H. M. Deitel and P. J. Deitel

Teacher: Dr. B.J. Shrestha

What does the following program print?

//**************************************************
//  Name:        John Doe/ Jane Doe
//  Professor:   Dr. B. J. Shrestha
//**************************************************
#include <iostream.h>

int main() 
{
	int row = 10, column;
	while ( row >=1 ) {
		column = 1;
		while ( column <= 10 ) {
			cout << ( row % 2 ? "<" : ">" );
			++column;
		}
		--row;
		cout << endl;
	}

	return 0;
}