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' );
Reputation Points: 718
Solved Threads: 373
Nearly a Posting Maven
Offline 2,253 posts
since Jul 2005