Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numerals to text #1

Open
shuklaalok7 opened this issue Sep 1, 2016 · 1 comment
Open

Numerals to text #1

shuklaalok7 opened this issue Sep 1, 2016 · 1 comment
Assignees
Labels

Comments

@shuklaalok7
Copy link
Member

shuklaalok7 commented Sep 1, 2016

Need to create a small utility using Java to convert numerals to text. Consider following input and output.

Sr Input Output
1 542 Five hundred forty two
2 5687 Five thousand six hundred eighty seven
3 5,687 Five thousand six hundred eighty seven
4 15,600 Fifteen thousand six hundred
5 2,342,454 Two million three hundred forty two thousand four hundred fifty four
6 234231 Two hundred thirty four thousand two hundred thirty one
@shuklaalok7
Copy link
Member Author

@nishthamishra7, you can safely assume that the input number will have 12 digits or less.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants