title: Algorithm to take a number and output its English word
body: <p>I want to make a program in C which will ask the user to input a number and then it will print that number in English. </p>
  
  <p>For example: </p>
  
  <pre><code>if(INPUT == 1) then print ONE
  if(INPUT == 2) then print TWO
  </code></pre>
  
  <p>and so on. It can be made using switch-case and if else but it makes the code lengthy. For few numbers it's fine but if we have to write up to 100 then it will be lengthy. </p>
  
  <p>Is there a short algorithm or idea for this?</p>