#C13930. Integer to English Words Conversion
Integer to English Words Conversion
Integer to English Words Conversion
You are given a string that consists of a list of integers separated by commas. Each integer will be in the range \(0 \leq n \leq 9\). Your task is to convert each integer to its corresponding English word and output a new string where the words are also separated by commas.
For example, given the input 1,2,3
, the output should be one,two,three
. Ensure that your program reads input from standard input (stdin) and writes the result to standard output (stdout).
inputFormat
The input is a single line string containing integers separated by commas. There are no extra spaces. Each integer is between 0 and 9, inclusive.
Format:
A single line string: num1,num2,...,numk
outputFormat
The output should be a single line string with each integer replaced by its English word representation, separated by commas.
Format:
A single line string: word1,word2,...,wordk
0
zero