title: Convert characters in string to integers for multiplication
body: <p>I am having trouble getting this to work. What I want to do is take user input example <code>1  2  3</code> and then multiple each character by 2 so output would be <code>2  4  6</code>. Eventually I will take a long string of numbers and multiply every other character in the string by 2 leaving the rest untouched.</p>
  
  <p>The problem I a having now is that I think it is multiplying the ASCII value by 2 not the actual integer by 2. Below is the code I have so far I haven't added any error checking to it yet to make sure the user inputs only numbers and not more than 16 etc. I am new to programming in C and am just doing this to learn.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  
  int main(void){
  
  
  char numbers[17];
  int i;
      printf("Please enter number\n");
      scanf("%s", &amp;numbers);
  
      for(int i=0;i&lt;strlen(numbers);i++){
          printf("%c\n",numbers[i] * 2);
      }
  
  }
  </code></pre>