using
System;
using
System.Collections.Generic;
class
Program {
static
void
Main(
string
[] args)
{
string
N =
"123"
;
PrintWord(N);
}
static
void
PrintWord(
string
N)
{
Dictionary<
char
,
string
> digits
=
new
Dictionary<
char
,
string
>{
{
'1'
,
"One"
}, {
'2'
,
"Two"
},
{
'3'
,
"Three"
}, {
'4'
,
"Four"
},
{
'5'
,
"Five"
}, {
'6'
,
"Six"
},
{
'7'
,
"Seven"
}, {
'8'
,
"Eight"
},
{
'9'
,
"Nine"
}, {
'0'
,
"Zero"
}
};
foreach
(
char
number
in
N)
{
Console.Write(digits[number] +
" "
);
}
}
}