Explore
ProGrad Programs
About Us

Edit
Reply




Edit

Number to words | Program to convert a given number to words

Published on 09 Mar 2020

Program to convert a given number to words is discussed here. For example, if 1234 is given as input, the output should be one thousand two hundred and thirty four".


Sample input: 9923

Sample output: nine thousand nine hundred twenty three


Program to convert a given number to words


Asked in recruitment drive of companies like Oracle, Microsoft and Paypal


C
C++
Java

Output
Input- Enter the number:1907 Output- The number in a word is One THousand Nine Hundred and Seven


Complexity of program to convert words into numbers:O(n)


Recommended Programs







If you have any feedback about this article and want to improve this, please write to enquiry@faceprep.in
Explore 'c'
Articles