I am having trouble figuring out how to test 2 bools in a loop. This is an example.
do
{
}while (!done || !validMove);
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int number1,
number2,
total;
bool done = false,
validMove = false;
do
{
cout << "Enter a number" << endl;
cin >> number1;
cout << "Enter another number" << endl;
cin >> number2;
total = number1 + number2;
cout << total << endl;
if (number1 > 0) //if number1 is more than 1, set done to true.
done = true;
else if (number2 >0) //if number2 is more than 2, set validMove to true.
validMove = true;
}while (!done || !validMove); //repeat while done is false or validMove is false.
return 0;
}