title: Can anyone help me check my BMI Calculator? (C#)
body: <p>I just started programming a week ago and my first assignment was to code a BMI calculator.</p>
  
  <p>It is supposed  to look like this when launched:</p>
  
  <pre><code>    BMI Calculator
      Your weight in kg: x 
      Your height in cm: x
      Gender (m/f): x
  
  -&gt; You are underweight/normal/overweight
  </code></pre>
  
  <p>Here is my code so far:</p>
  
  <pre><code>            Console.WriteLine("BMI Calculator");
              Console.WriteLine("===========");
              Console.WriteLine();
  
              Console.Write("Weight in kg: ");
              int kg;
              kg = Convert.ToInt32(Console.ReadLine());
  
              Console.Write("Height in cm: ");
              int m;
              m = Convert.ToInt32(Console.ReadLine());
  
              Console.Write("Gender (m/f):");
              string Geschlecht = Console.ReadLine();
  
              int BMI;
              BMI = kg / (m / 100) * (m / 100);
  
              if (BMI &lt; 19 &amp; Gender == "f")
              { Console.WriteLine("-&gt; Underweight"); }
              if (BMI &gt;= 19 &amp; BMI &lt;= 24 &amp; Gender == "f") 
              { Console.WriteLine("-&gt; Normal"); }
              if (BMI &gt; 24 &amp; Geschlecht == "f")
              { Console.WriteLine("-&gt; Overweight"); }
  
              if (BMI &lt; 20 &amp; Gender == "m")
              { Console.WriteLine("-&gt; Underweight"); }
              if (BMI &gt;= 20 &amp; BMI &lt;= 25 &amp; Gender == "m")
              { Console.WriteLine("-&gt; Normal"); }
              if (BMI &gt; 25 &amp; Gendert == "m")
              { Console.WriteLine("-&gt; Overweight"); }
  
              Console.ReadLine();
  </code></pre>
  
  <p>I'm not sure what's wrong with my code but whenever I enter 60kgs, 170cm and male, I get overweight, even though I should get normal. Same thing with anything above 10kgs actually.</p>
  
  <p>PS: I'm really a beginner at programming so I apologize for my command of the programming lingo.</p>
  
  <p>And for your convenience: </p>
  
  <p><a href="http://i.stack.imgur.com/admqr.png" rel="nofollow">http://i.stack.imgur.com/admqr.png</a></p>
  
  <p>Thanks in advance!</p>