title: Compiler closes automatically when displaying output
body: <p>I want to input values and then display the values that I input but after I input the values, it displays the output a half second before closing automatically. </p>
  
  <p>Here is my code</p>
  
  <pre><code>    #include&lt;stdio.h&gt;
  int main()
  {
      float startnummer;
      float hoppnummer;
      float svarighetsgrad;
      float domarpoang1;
      float domarpoang2;
      float domarpoang3;
      float domarpoang4;
      float domarpoang5;
      float domarpoang6;
      float domarpoang7;
  
      printf("Startnummer: \n");
      scanf_s("%f", &amp;startnummer );
  
      printf("Hoppnummer:\n");
      scanf_s("%f", &amp;hoppnummer);
  
      printf("Svarighetsgrad:\n");
      scanf_s("%f", &amp;svarighetsgrad);
  
      printf("Domarpoang 1:\n");
      scanf_s("%f", &amp;domarpoang1);
  
      printf("Domarpoang 2:\n");
      scanf_s("%f", &amp;domarpoang2);
  
      printf("Domarpoang 3:\n");
      scanf_s("%f", &amp;domarpoang3);
  
      printf("Domarpoang 4:\n");
      scanf_s("%f", &amp;domarpoang4);
  
      printf("Domarpoang 5:\n");
      scanf_s("%f", &amp;domarpoang5);
  
      printf("Domarpoang 6:\n");
      scanf_s("%f", &amp;domarpoang6);
  
      printf("Domarpoang 7:\n");
      scanf_s("%f", &amp;domarpoang7);
  
      printf("Startnummer: %f \n", startnummer);
      printf("Hoppnummer:\n", hoppnummer);
      printf("Svarighetsgrad:\n", svarighetsgrad);
      printf("Domarpoang 1:\n", domarpoang1);
      printf("Domarpoang 2:\n", domarpoang2);
      printf("Domarpoang 3:\n", domarpoang3);
      printf("Domarpoang 4:\n", domarpoang4);
      printf("Domarpoang 5:\n", domarpoang5);
      printf("Domarpoang 6:\n", domarpoang6);
      printf("Domarpoang 7:\n", domarpoang7);
  
      printf("Hoppoang: \n");
  
      printf("Tryck tangent for nytt hopp!");
      getchar();
      return 0;
  }
  </code></pre>
  
  <p>Does anyone know how to make it so it doesn't close automatically when displaying the output?
  Thanks</p>