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

 

string_convertIntegerToWords


Given an integer "n" between -100 and 100, return the English word(s) for that number. For example, 25 should return "twenty five" and -18 should return "negative eighteen".


string_convertIntegerToWords(0) → "zero"
string_convertIntegerToWords(1) → "one"
string_convertIntegerToWords(2) → "two"

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

public String string_convertIntegerToWords(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

Post-solution available

Copyright Nick Parlante 2017 - privacy