//  ~cs35/win_0b.cpp		to show elemetary graphics; to introduce "for"

#include "CS35win.h"

int main ()
{
	int counter;
	char ch;
	
	cout << "What's your favorite keystroke? ";
	cin  >> ch;
	
	beginwin();
	
	for (counter = 0; counter < 19 ;counter ++) //
	{
		move (counter,1+ 2*counter);
		addch(ch);
		refresh();
		hesitate(.1);
	}

	for (counter = 19; counter >= 0; counter -- )
	{
		move (counter,77 - 2*counter);
		addch(ch);
		refresh();
		hesitate(.1);
	}
	hesitate(2);
	endwin();
	return 0;
}

