Problem Solving: Number-to-word Conversion

Learn to write a program using functions that takes a number as input and displays all its digits in words.

In this lesson, we’ll write a program that prints an n-length number into words using functions.

So, let’s start with the simpler version of the problem.

3-digit number to word conversion

Write and run a program that takes a three-digit number as input and prints all digits in words.

Sample input

564

Sample output

Five Six Four

Get hands-on with 1200+ tech skills courses.