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