/* program to show how to run a program a number of times till the user says no more! */ #include int main( void ) { char yesOrNo = 'y'; while ( yesOrNo == 'y' || yesOrNo == 'Y' ) { std::cout << "This is the part of my program that " "does Something Wonderful....\n\n"; std::cout << "Do you want to do Something Wonderful again (y/n): "; std::cin >> yesOrNo; } }