id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

konstans@stuy.edu > toWords
prev  |  next  |  chance

numToWords will convert an integer from -2147483647 to 2147483647 into the words that spell out the number. Place hyphens between the tens and ones : "twenty-two" and use the british style and between the hundreds and the rest of the number : "one hundred and one"


toWords(1) → "one"
toWords(0) → "zero"
toWords(13) → "thirteen"

...Save, Compile, Run (ctrl-enter)

public String toWords(int n){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Copyright Nick Parlante 2017 - privacy