Logo
IconChallenge
Icon
IconProblem
IconSolutions
IconSubmissions

Integer to English Words

XPChallenge Points: 30
levelLevel: Hard

You are given a non-negative integer num. Your task is to express this number using correct English words.

The representation should follow standard English wording rules:

  • Use words like “Thousand”, “Million”, “Billion” when appropriate.

  • Numbers below 20 have unique names.

  • Tens such as 20, 30, 40 … 90 follow a structured format.

  • Zero must be written as "Zero".

Return a string that spells out the value of num in clear English wording.

Example 1:

Input: num = 507

Output: "Five Hundred Seven"

Example 2:

Input: num = 1000010

Output: "One Million Ten"

Example 3:

Input: num = 400200030

Output: "Four Hundred Million Two Hundred Thousand Thirty"

to Continue
like
dislike

Accepted:

Submission:

IconReport an issue
Icon
IconCode
IconYou need toto run or submitYou need toto run or submit
IconTest Case
IconTest Result