Im trying to write a program that will make a simple math quiz for students using random numbers. The program should display a menu that allows the user to choose between Addition, Subtraction, Multiplication, Division, and Modulus operations. Here is what I have so far.
Please use the code tags when you post code. On the right of where you enter your post, look for <>.
You haven't really been specific as to what you're stuck on.
Your do-while loop is missing the while statement.
1 2 3 4 5 6 7 8 9 10
do
{
cout << "a.Find the sum of two numbers\n";
cout << "b.Subtract two numbers\n";
cout << "m.find the product of two numbers\n";
cout << "d.Divide two numbers\n";
cout << "r. find the Modulus of two numbers\n";
cout << "q.Quit the program\n";
cin >> choice;
}while( /* condition here */ );