title: (C) Displaying multiple variables on the printf line, having some trouble
body: <p>I am testing a program midway through, and noticed that printf is displaying some of my stored values as 0's. Particularly when I try to, using printf, display them in one command. They work fine individually, I have checked this.
  Here's my code:</p>
  
  <hr>
  
  <pre><code>#include &lt;math.h&gt;
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  /* Initialization of variables */
  double int1;
  double int2;
  double int3;
  double int4;
  double int5;
  
  /* Initialization of calculated values */
  double a_mean;
  double g_mean;
  double h_mean;
  double st_dev;
  n = 5; /* Total number of integers for summation use */
  
  int main()
  {
      printf("Enter 5 integers, pressing 'Enter' after each:\n"); /* Prompts user input */
  
          /* Scans in entered integer values (5) */
          scanf("%d", &amp;int1);
          scanf("%d", &amp;int2);
          scanf("%d", &amp;int3);
          scanf("%d", &amp;int4);
          scanf("%d", &amp;int5);
  
                      /* Calculations */
  
          /* Output */
          printf("The five integers entered were:\n");
          printf("%d, %d, %d, %d, and %d", int1, int2, int3, int4, int5);    
  
      return 0;
      }
  </code></pre>
  
  <hr>
  
  <h2>Command Prompt Input:</h2>
  
  <p>Enter 5 integers, pressing 'Enter' after each:
  1
  2
  3
  4
  5</p>
  
  <hr>
  
  <h2>Command Prompt Output:</h2>
  
  <p>The five integers entered were:
  1, 0, 2, 0, and 3</p>
  
  <hr>
  
  <p>By the way, ignore the missing /* Calculations */ section in the middle, I am just testing my current progress...
  But see how I entered 1,2,3,4,5 and only some values print correctly? On individual printf lines they work. What am I doing wrong??</p>