put the do in before this line:
cout << " Please enter two numbers: ";
and the while after the closing brace of the switch statement.
} //end of switch statement
cout << "\n Would you like to perform another calculation? " << endl;
cin >> option;
}while ( option == 'y' );
Lerner
Nearly a Posting Maven
2,382 posts since Jul 2005
Reputation Points: 739
Solved Threads: 396