C++ while problem
<p>I have a problem with while loop in c++.
I write this code:</p>

<pre><code>#include &lt;iostream.h&gt;
main () {
    int a, av = 0;
    cout &lt;&lt; "Enter a number: ";
    cin &gt;&gt; a;

        for (int i = 1; i &lt;= a; i++) {
            while (av == 1) {
                cout &lt;&lt; "abc" &lt;&lt; a / i;
                if (a % i == 0) {
                    av = 1;
                }
            }
        }
}
</code></pre>

<p>This program should print "abc", but it doesn't print any thing.
I know the problem is in while section, but how can I fix it?
Thanks ..</p>
