Need c++ help

I need help creating a c++ program using while that terminates the loop when two intergers become equal please need help ASAP. Thanks intergers should use 2 numbers between 1 and 100
Last edited on
closed account (28poGNh0)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# include <iostream>
using namespace std;

int main()
{
    int nbrToFind = 13;
    int guess = 0;

    while(guess != nbrToFind)
    {
        cin >> guess;
        cout << "You entered " << guess << endl;
    }cout << "The two numbers match " << endl;
}
Thanks for the red do I put something else there or just put what you have
Topic archived. No new replies allowed.