title: My simple switch statement doesn't work in C++
body: <p>I'm trying to write a very simple C++ switch statement, but despite reading the sample code from Absolute C++ , and other online examples It still doesn't output anything when I want it to. Why doesn't this code work?
  (FIXED)</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  #include &lt;cmath&gt;
  #include &lt;string&gt;
  #include &lt;Windows.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;time.h&gt; 
  #include &lt;random&gt;
  
  using namespace std;
  
  
  int main()
  {  
  int HouseValue;
  double AnnualInsuranceCost = 0;
  cout &lt;&lt; "Enter your total house value estimate: (rounded to nearest 50,000!)\n\n\n";
  cin &gt;&gt; HouseValue;
  
  switch (HouseValue)
  {
      case 50000:
          AnnualInsuranceCost = 2000;
          break;
  
      case 100000:
          AnnualInsuranceCost = 3000;
          break;
  
      case 150000:
          AnnualInsuranceCost = 3500;
          break;
  
      case 200000:
          AnnualInsuranceCost = 3750; 
          break;
  
      case 250000:
          AnnualInsuranceCost = 3875;
          break;
  
  }
  
  
  cout &lt;&lt; "\n\n\n\t\t    Your annual insurance cost will be: " &lt;&lt; AnnualInsuranceCost &lt;&lt; "\n\n\n\t\t\t";
  
  
  
  return 0;
  </code></pre>
  
  <p>}</p>