How does this simple program not represent recursion? : <p>How does this "not" demonstrate recursion?   It is a simple high/low find where I set "mid" to be the guess of the program's randomly selected number within the range.  I am in a pissing match with an instructor.  What do you think?</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;cstdlib&gt;
#include &lt;time.h&gt;
using namespace std;

int main()
{
    // define variables
int left = 1, mid, range, secret, y = 0;

// query user defined range, assign to variable range
cout &lt;&lt; "Please enter top of range: " &lt;&lt; endl;
cin &gt;&gt; range;

// seed random number generator with time
srand(time(NULL));

// generate secret number based between left and range
secret = rand() % range;

    do {
        // define and assign primary value of mid updating on each 
iteration
        mid = ((range + left) / 2);

        if (mid &gt; secret) {
            // set range to mid
            range = mid;
            // iterate
            y++;

        } else if (mid &lt; secret) {
            // set left to mid
            left = mid;
            // iterate
            y++;

        } else {
                // escape condition met
                cout &lt;&lt; "Found secret number " &lt;&lt; secret &lt;&lt; " in " &lt;&lt; y 
&lt;&lt; " tries. " &lt;&lt; endl;
                return 0;
            }

        } while (mid != secret);

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