VelizarAvramov

06. Foreign Languages

Dec 16th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.67 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _06._Foreign_Languages
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             string country = Console.ReadLine();
  10.  
  11.             switch (country)
  12.             {
  13.                 case "USA":
  14.                 case "England":
  15.                     Console.WriteLine("English");
  16.                     break;
  17.                 case "Mexico":
  18.                 case "Spain":
  19.                 case "Argentina":
  20.                     Console.WriteLine("Spanish");
  21.                     break;
  22.  
  23.                 default:
  24.                     Console.WriteLine("unknown");
  25.                     break;
  26.             }
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment