c# do while ( Two condition )
<p>im trying to do a loop when either one of the two conditions are met for ten times.. </p>

<p>This involves a box of bottles either Sugar or Salt where the person must pick randomly two bottles. He/She will stop picking when it was choosen 10 times... It doesnt seem to work.</p>

<pre><code>        int sugar = 0;
        int salt = 0;

        do
        bottle1.choose
        bottle2.choose
        {
            if ((bottle1 = 'Sugar') &amp;&amp; (bottle2 = 'Sugar'))
            {
                Console.Write("Sugar");
                Sugar++;
            }
            else if (bottle1 = 'Salt') &amp;&amp; bottle1 = 'Salt')
            {
                Salt++;
                Console.Write("Salt");
            }
            else
            {
                Console.Write("None");
            }
        }
        while ((Salt &lt; 10) || Sugar &lt; 10);
</code></pre>
