Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Number0_to_100_to_text
- {
- class Program
- {
- static void Main(string[] args)
- {
- double num = double.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");
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment