Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Number_0._._._9_to_Text
- {
- class Program
- {
- static void Main(string[] args)
- {
- var num = int.Parse(Console.ReadLine());
- if (num == 0)
- {
- Console.WriteLine("Zero");
- }
- else if (num == 1)
- {
- Console.WriteLine("One");
- }
- else if (num == 2)
- {
- Console.WriteLine("Two");
- }
- else if (num == 3)
- {
- Console.WriteLine("Three");
- }
- else if (num == 4)
- {
- Console.WriteLine("Four");
- }
- else if (num == 5)
- {
- Console.WriteLine("Five");
- }
- else if (num == 6)
- {
- Console.WriteLine("Six");
- }
- else if (num == 7)
- {
- Console.WriteLine("Seven");
- }
- else if (num == 8)
- {
- Console.WriteLine("Eight");
- }
- else if (num == 9)
- {
- Console.WriteLine("Nine");
- }
- else
- {
- Console.WriteLine("number too big");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment