Skip to content

Instantly share code, notes, and snippets.

@viewless
Created February 20, 2018 13:57
Show Gist options
  • Save viewless/4e9613e41b0a78a0207146c289517298 to your computer and use it in GitHub Desktop.
Save viewless/4e9613e41b0a78a0207146c289517298 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApp5
{
class Program
{
static void Main(string[] args)
{
var num = int.Parse(Console.ReadLine());
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 if (num>9)
{
Console.WriteLine("number too big");
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment