+ 3

Program to read an integer value (123) n give output in words (one two three) using constructor

6th Jun 2017, 10:23 AM
Pranjal
Pranjal - avatar
2 Antworten
+ 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); }
6th Jun 2017, 11:09 AM
Shubham Drolia
Shubham Drolia - avatar