Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.08 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace translate
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             Console.WriteLine("Please enter a word to translate:");
  14.             Console.WriteLine();
  15.  
  16.             var word = Console.ReadLine();
  17.                 if (word == "dog")
  18.                 {
  19.                 Console.WriteLine("kuche");
  20.                 }
  21.                 else if (word == "cat")
  22.                 {
  23.                 Console.WriteLine("kotka");
  24.                 }
  25.                 else if (word == "pig")
  26.                 {
  27.                 Console.WriteLine("prase");
  28.                 }
  29.                 else
  30.                 {
  31.                 Console.WriteLine("unknown word");
  32.                 }
  33.             Console.WriteLine();
  34.             Console.WriteLine("Enter another word:");
  35.             Console.WriteLine();
  36.  
  37.             var word2 = Console.ReadLine();
  38.             if (word2 == "dog")
  39.             {
  40.                 Console.WriteLine("kuche");
  41.             }
  42.             else if (word2 == "cat")
  43.             {
  44.                 Console.WriteLine("kotka");
  45.             }
  46.             else if (word2 == "pig")
  47.             {
  48.                 Console.WriteLine("prase");
  49.             }
  50.             else
  51.             {
  52.                 Console.WriteLine("unknown word");
  53.             }
  54.             Console.WriteLine();
  55.             Console.WriteLine("Enter another word:");
  56.             Console.WriteLine();
  57.  
  58.             var word3 = Console.ReadLine();
  59.             if (word3 == "dog")
  60.             {
  61.                 Console.WriteLine("kuche");
  62.             }
  63.             else if (word3 == "cat")
  64.             {
  65.                 Console.WriteLine("kotka");
  66.             }
  67.             else if (word3 == "pig")
  68.             {
  69.                 Console.WriteLine("prase");
  70.             }
  71.             else
  72.             {
  73.                 Console.WriteLine("unknown word");
  74.             }
  75.             Console.WriteLine();
  76.  
  77.  
  78.  
  79.  
  80.  
  81.         }
  82.     }
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement