title: text to decimal C
body: <p>Manual conversion.</p>
  
  <p>For example, input = axe, why the dec of 'a' (97) always in endless loop?</p>
  
  <p>Can't move to 'x' dec and 'e'?</p>
  
  <pre><code>//project text to ASCII Dec
  #include &lt;stdio.h&gt;
  
  main(){
      char i=0, data, a;
  
      printf("Enter data : ");
      scanf("%s", &amp;data); //or %c
  
      while(data != i){ /* can't out from this loop I mean to the next letter of word */
        a = data;
        printf("%d", data); // or printf("%d", a);
        if(data != 0){
          printf("-");
        }
      }
  }
  </code></pre>