Advertisement
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 _7._4_Write_numbers_with_letters
- {
- class Program
- {
- static void Main(string[] args)
- {
- int num = int.Parse(Console.ReadLine());
- string one = "uno";
- string two = "dos";
- string three = "tres";
- string four = "cuatro";
- string five = "cinco";
- string six = "seis";
- string seven = "siete";
- string eight = "ocho";
- string nine = "nueve";
- string ten = "diez";
- 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 == 10)
- {
- Console.WriteLine(ten);
- }
- else
- {
- Console.WriteLine("Number too big");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement