How to end my while loop?
<p>Hey can anyone lend me a hand? How can I make my loop end after the first calculation? After i complete one calculation such as addition, I would like to end it. Sorry for the noobie questions. I'm just learning loops now in my class. Greatly appreciated.</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;

using namespace std;

int main()
{
    int numOne;
    int numTwo;
    int result;
    string operation;

    cout &lt;&lt; "Please enter what operation you'd like to perform or e/E to end program: ";
    cin &gt;&gt; operation;
    while (operation == "e" || operation == "E")
    {
        cout &lt;&lt; "Operation type invalid." &lt;&lt; endl;
        cout &lt;&lt; "Please enter what operation you'd like to perform or e/E to end program: ";
        cin &gt;&gt; operation;
    }

    while (operation == "+" || operation == "-" || operation == "*" || operation == "/")
    {
        cout &lt;&lt; "Please enter integer one: ";
        cin &gt;&gt; numOne;
        cout &lt;&lt; "Please enter integer two: ";
        cin &gt;&gt; numTwo;

    if (operation == "+")
    {
        result = numOne + numTwo;
        cout &lt;&lt; "The numbers you entered were " &lt;&lt; numOne &lt;&lt; "," &lt;&lt; numTwo &lt;&lt; endl;
        cout &lt;&lt; "The operation you chose was " &lt;&lt; operation &lt;&lt; "." &lt;&lt; endl;
        cout &lt;&lt; "The operations result is " &lt;&lt; result &lt;&lt; "." &lt;&lt; endl;
        cout &lt;&lt; "Your equation was: " &lt;&lt; numOne &lt;&lt; " " &lt;&lt; operation &lt;&lt; " " &lt;&lt; numTwo &lt;&lt; " = " &lt;&lt; result &lt;&lt; ".";
    }
    else if (operation == "-")
    {
        result = numOne - numTwo;
        cout &lt;&lt; "The numbers you entered were " &lt;&lt; numOne &lt;&lt; "," &lt;&lt; numTwo &lt;&lt; endl;
        cout &lt;&lt; "The operation you chose was " &lt;&lt; operation &lt;&lt; "." &lt;&lt; endl;
        cout &lt;&lt; "The operations result is " &lt;&lt; result &lt;&lt; "." &lt;&lt; endl;
        cout &lt;&lt; "Your equation was: " &lt;&lt; numOne &lt;&lt; " " &lt;&lt; operation &lt;&lt; " " &lt;&lt; numTwo &lt;&lt; " = " &lt;&lt; result &lt;&lt; ".";
    }
    else if (operation == "*")
    {
        result = numOne * numTwo;
        cout &lt;&lt; "The numbers you entered were " &lt;&lt; numOne &lt;&lt; "," &lt;&lt; numTwo &lt;&lt; endl;
        cout &lt;&lt; "The operation you chose was " &lt;&lt; operation &lt;&lt; "." &lt;&lt; endl;
        cout &lt;&lt; "The operations result is " &lt;&lt; result &lt;&lt; endl;
        cout &lt;&lt; "Your equation was: " &lt;&lt; numOne &lt;&lt; " " &lt;&lt; operation &lt;&lt; " " &lt;&lt; numTwo &lt;&lt; " = " &lt;&lt; result &lt;&lt; ".";
    }
    else if (operation == "/")
    {
        if (numTwo == 0)
        {
                cout &lt;&lt; "You cannot divide by zero!" &lt;&lt; endl;
        }
        else
        {
        result = numOne / numTwo;
        cout &lt;&lt; "The numbers you entered were " &lt;&lt; numOne &lt;&lt; "," &lt;&lt; numTwo &lt;&lt; endl;
        cout &lt;&lt; "The operation you chose was " &lt;&lt; operation &lt;&lt; "." &lt;&lt; endl;
        cout &lt;&lt; "The operations result is " &lt;&lt; result &lt;&lt; endl;
        cout &lt;&lt; "Your equation was: " &lt;&lt; numOne &lt;&lt; " " &lt;&lt; operation &lt;&lt; " " &lt;&lt; numTwo &lt;&lt; " = " &lt;&lt; result &lt;&lt; ".";
        }
    }

    }
    return 0;
}
</code></pre>

<p>I'm not allowed to use <code>break</code>. Is there another way?</p>