madeofglass

Untitled

Mar 11th, 2020
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 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.             if (country == "England" || country == "USA")
  12.             {
  13.                 Console.WriteLine("English");
  14.             }
  15.             else if (country == "Spain" || country == "Argentina" || country == "Mexico")
  16.             {
  17.                 Console.WriteLine("Spanish");
  18.             }
  19.             else
  20.             {
  21.                 Console.WriteLine("unknown");
  22.             }
  23.         }
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment