title: Can't get a basic C program to run
body: <p>I'm trying to run a simple code, that gets two numbers from the user and prints their sum
  there it is:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;conio.h&gt;
  
  void main() {
      int n1 = 0, n2 = 0, sum = 0;
      printf("Insert two numbers:\n");
      scanf("%d %d", n1, n2);
      sum = n1 + n2;
      printf("The sum of %d and %d is - %d\n", n1, n2, sum);
      printf("%d + %d = %d", n1, n2, sum);
      getch();
  }
  </code></pre>
  
  <p>I'm trying to run it, when i do the first print command gets executed and when i press enter for it to scan it crashes, I'm using code::blocks 13.12 to compile and run
  thank you! :)</p>