title: Integer is uninitialized in VSCommunity2019,windows10
body: <p>I am making a calculator in c++ and I have everyting done except factorial which has one issue:
  my int number is &quot;uninitialized&quot; this is a console application on vscommunity2019 on windows10 if that helps. Everything works perfect except factorial,when I test it theonly error is the int number.</p>
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  int main()
  
  {
  float n1;
  char op;
  float n2;
  int co;
  int i;
  int fact = 1;
  int number;
  calculations: std::cout &lt;&lt; &quot;Enter n1!&quot;;
      std::cin &gt;&gt; n1;
      std::cout &lt;&lt; &quot;\nEnter operator! Here are your choices: + - * / !&quot;;
      std::cin &gt;&gt; op;
      std::cout &lt;&lt; &quot;\nEnter n2!&quot;;
      std::cin &gt;&gt; n2;
      switch (op)
      {
      case '+':
          std::cout &lt;&lt; n1 + n2;
          break;
  case '-':
      std::cout &lt;&lt; n1 - n2;
      break;
  
  case '*':
      std::cout &lt;&lt; n1 * n2;
      break;
  
  case '/':
      std::cout &lt;&lt; n1 / n2;
      break;
  case '!':
      for (i = 1; i &lt;= number; i++) {
          fact = fact * i;
      }
      std::cout &lt;&lt; number;
      break;
  default:
      std::cout &lt;&lt; &quot;Error! operator is not correct&quot;;
      break;
  }
  std::cout &lt;&lt; &quot;\nWant to continue?Y(type 1)/N(type 0)&quot;;
  std::cin &gt;&gt; co;
  if (co == 1) {
  
      goto calculations;
  }
  return 0;
  
  
  }
  </code></pre>