#include int main() { int number1; int number2; int guess1; int guess2; int turn = 2; int i; int j; int w; w=0; cout << "What is your number player 1?" << endl; cin >> number1; cin.get(); cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << "What is your number player 2?" << endl; cin >> number2; cin.get(); cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; cout << endl; while (w==0) { if(turn%2==0) { for(j=0; j<=100; j++) { cout << "Player one chooses: " << endl; cin >> guess1; cout << endl; cout << endl; cin.get(); if(guess1number2) { cout << "Lower" << endl; cout << endl; cout << endl; break; } if(guess1==number2) { cout << "Player one wins!" << endl; w=1; break; } break; } } if(turn%2==1) { for(j=0; j<=100; j++) { cout << "Player two chooses: " << endl; cin >> guess2; cout << endl; cout << endl; cin.get(); if(guess2number1) { cout << "Lower" << endl; cout << endl; cout << endl; break; } if(guess2==number1) { cout << "Player two wins!" << endl; w=1; break; } } } turn++; } cin.get(); return 0; }