title: Infinite Loop C# Fix Please
body: <pre><code>        Console.WriteLine(&quot;Mortgage Loan Calculator&quot;);
          Console.WriteLine(&quot;------------------------------------&quot;);
  
          C1 c1 = new C1();
          while (true)
          {
              bool continueLoop = true;
              do
              {
                  try
                  {
                      Console.WriteLine(&quot;Enter loan amount: &quot;);
                      loanAmount = Convert.ToDouble(Console.ReadLine());
                      checkLoanAmount(loanAmount);
                      continueLoop = false;
                  }
                  catch (FormatException formatException)
                  {
                      Console.WriteLine(&quot;\n&quot; + formatException.Message);
                      Console.WriteLine(&quot;Please enter a double value. \n&quot;);
                      continueLoop = true;
                  }
                  catch (MyRangeException negativeNumberException)
                  {
                      Console.WriteLine(&quot;\n&quot; + negativeNumberException.test);
                  }
                  catch (Exception exception)
                  {
                      Console.WriteLine(&quot;\n&quot; + exception.Message);
                      Console.WriteLine(&quot;Input string was not in a correct format&quot;);
                      continueLoop = true;
                  }
  
              } while (continueLoop);
  
              do
              {
                  try
                  {
                      Console.WriteLine(&quot;Enter loan amount: &quot;);
                      years = Convert.ToDouble(Console.ReadLine());
                      checkLoanYears(years);
                  }
                  catch (FormatException formatException)
                  {
                      Console.WriteLine(&quot;\n&quot; + formatException.Message);
                      Console.WriteLine(&quot;Please enter a double value. \n&quot;);
                  }
                  catch (MyRangeException negativeNumberException)
                  {
                      Console.WriteLine(&quot;\n&quot; + negativeNumberException.Message);
                  }
                  catch (Exception exception)
                  {
                      Console.WriteLine(&quot;\n&quot; + exception.Message);
                      Console.WriteLine(&quot;Input string was not in a correct format&quot;);
                  }
  
              } while (continueLoop);
  
              do
              {
                  try
                  {
                      Console.WriteLine(&quot;Enter loan amount: &quot;);
                      interest = Convert.ToDouble(Console.ReadLine());
                      checkLoanInterest(interest);
                  }
                  catch (FormatException formatException)
                  {
                      Console.WriteLine(&quot;\n&quot; + formatException.Message);
                      Console.WriteLine(&quot;Please enter a double value. \n&quot;);
                  }
                  catch (MyRangeException negativeNumberException)
                  {
                      Console.WriteLine(&quot;\n&quot; + negativeNumberException.Message);
                  }
                  catch (Exception exception)
                  {
                      Console.WriteLine(&quot;\n&quot; + exception.Message);
                      Console.WriteLine(&quot;Input string was not in a correct format&quot;);
                  }
  
              } while (continueLoop);
          }
  </code></pre>
  <p>So I'm trying to create a Loan Program with exception handling. I have the code working to where it takes the exceptions when I input in the wrong format. The problem that I'm having though is that it keeps it in an infinite loop asking for the loan amount instead of going to the next question. If anyone could give me some advice of what I'm doing wrong that would be greatly appreciated!</p>