title: How to get summation in C?
body: <p>How to make a program to read elements from input like:</p>
  
  <blockquote>
    <p>1 3</p>
  </blockquote>
  
  <p>and give me the summation of that:</p>
  
  <blockquote>
    <p>4</p>
  </blockquote>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main(void){
      char x[3];
      scanf(" %c",&amp;x);
      printf("%d\n",x[0]+x[2]);
  }
  </code></pre>