We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. All Contests
  2. ProjectEuler+
  3. Project Euler #17: Number to Words

Project Euler #17: Number to Words

Problem
Submissions
Leaderboard
Discussions

This problem is a programming version of Problem 17 from projecteuler.net

The numbers to written out in words are

First character of each word will be capital letter for example:
is

Given a number, you have to write it in words.

Input Format

The first line contains an integer , i.e., number of test cases.
Next lines will contain an integer .

Constraints

Output Format

Print the values corresponding to each test case.

Sample Input

2
10
17

Sample Output

Ten
Seventeen

Explanation

Follow the rules given in statement.

Author

shashank21j

Difficulty

Easy

Max Score

100

Submitted By

7419

Need Help?


View discussions
View top submissions

rate this challenge

MORE DETAILS

Download problem statement
Download sample test cases
Suggest Edits

Choose a translation


  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy