title: C programming: Write a program that reads three integers from keyboard and outputs their sum
body: <p>I have to write code that reads three integers from keyboard and outputs their sum. Does this mean that only integers should be entered, or should it be able to add characters as well? Here's my code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void) {
      int a, b, c, d; 
  
      printf("\n Enter the three numbers:"); 
      scanf("%d %d %d", &amp;a, &amp;b, &amp;c); 
  
      d = a + b + c;  
  
      printf("sum of numbers is %d", d); 
  }
  </code></pre>