title: "Loop" not working in C#
body: <p>thanks to the community here I was able to write my first program. However, I still need some help to improve the program:</p>
  
  <pre><code>Console.WriteLine("BMI Rechner");
          Console.WriteLine("===========");
          Console.WriteLine();
  
          Console.Write("Körpergewicht in kg: ");
          int kg;
          kg = Convert.ToInt32(Console.ReadLine());
  
          Console.Write("Größe in cm: ");
          int cm;
          cm = Convert.ToInt32(Console.ReadLine());
  
          Console.Write("Geschlecht (m/w):");
          string Geschlecht = Console.ReadLine();
          bool Auswahl = false;
  
          switch(Geschlecht)
         {
          case "m":
          Auswahl = true;
          break;
          case "w":
          Auswahl = true;
          break;
          default:
          Console.WriteLine("Ungültige Eingabe");
          Console.WriteLine("(m)ännlich/(w)eiblich");
          break;
         }
          if (Auswahl != false) {Console.WriteLine("Eingabe wird verarbeitet");}
  
  
          double BMI = kg / ( (cm / 100.0) * (cm / 100.0) );
  
          if (BMI &lt; 19 &amp; Geschlecht == "w")
          { Console.WriteLine("-&gt; Untergewicht"); }
          else if (BMI &gt;= 19 &amp; BMI &lt;= 24 &amp; Geschlecht == "w") 
          { Console.WriteLine("-&gt; Normalgewicht"); }
          else if (BMI &gt; 24 &amp; Geschlecht == "w")
          { Console.WriteLine("-&gt; Übergewicht"); }
  
          if (BMI &lt; 20 &amp; Geschlecht == "m")
          { Console.WriteLine("-&gt; Untergewicht"); }
          else if (BMI &gt;= 20 &amp; BMI &lt;= 25 &amp; Geschlecht == "m")
          { Console.WriteLine("-&gt; Normalgewicht"); }
          else if (BMI &gt; 25 &amp; Geschlecht == "m")
          { Console.WriteLine("-&gt; Übergewicht"); }
  
          Console.ReadLine();
  </code></pre>
  
  <p>I made a switch thingie in the middle to prevent the program from crashing if a wrong input is given. It works and I get these lines:</p>
  
  <pre><code>        Console.WriteLine("Ungültige Eingabe");
          Console.WriteLine("(m)ännlich/(w)eiblich");
  </code></pre>
  
  <p>which is supposed to be my "loop" back to the options "m" and "w". However, if I enter m/w now, the program just closes, meaning that it doesn't work at all.</p>
  
  <p>Is there an error in my code or am I just using the wrong command?</p>
  
  <p>I apologize for my command of the programming lingo. This is my first time.</p>
  
  <p>Thanks in advance!</p>