Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- string n = Console.ReadLine();
- char a = n[n.Length - 1];
- //Console.WriteLine(a);
- if (a =='1')
- {
- Console.WriteLine("one");
- }
- else if (a == '2')
- {
- Console.WriteLine("two");
- }
- else if (a == '3')
- {
- Console.WriteLine("three");
- }
- else if (a == '4')
- {
- Console.WriteLine("four");
- }
- else if (a == '5')
- {
- Console.WriteLine("five");
- }
- else if (a == '6')
- {
- Console.WriteLine("six");
- }
- else if (a == '7')
- {
- Console.WriteLine("seven");
- }
- else if (a == '8')
- {
- Console.WriteLine("eight");
- }
- else if (a == '9')
- {
- Console.WriteLine("nine");
- }
- else if (a == '0')
- {
- Console.WriteLine("zero");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement