+ 3
Program to read an integer value (123) n give output in words (one two three) using constructor
2 odpowiedzi
+ 2
string inp = "123";
foreach (char c in inp)
{ string word = ""; switch (c)
{ case '0': word = "zero ";
break;
case '1': word = "one ";
break; ... }
Console.Write(word); }