title: While Loop, Program Error
body: <p>Basically what the program is suppose to do is verify that the username that was entered (in previous code to  register) matches the username that is inputted right now. So the user is allowed 3 chances to get it correct, but instead the code is not breaking out of the loop. Can anyone see what is wrong/needs fixing?</p>
  
  <p>//User Enters username, and then username is verified</p>
  
  <pre><code>    do
          { 
  
              Console.Write("Please enter your username: ");
              user_login = Console.ReadLine();
  
  
              if (user_login != username)
              {
                  Console.WriteLine("The username does not match the one in our database");
                  Console.WriteLine("Please try again");
                  Console.WriteLine("");
                  count_user = +1;
              }
  
              else
              {
                  Console.WriteLine("Your username matches!");
                  Console.WriteLine("");
                  break;
              }
  
          } while (user_login != username &amp;&amp; count_user &lt; 3) ;
  </code></pre>