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 translate
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Please enter a word to translate:");
- Console.WriteLine();
- var word = Console.ReadLine();
- if (word == "dog")
- {
- Console.WriteLine("kuche");
- }
- else if (word == "cat")
- {
- Console.WriteLine("kotka");
- }
- else if (word == "pig")
- {
- Console.WriteLine("prase");
- }
- else
- {
- Console.WriteLine("unknown word");
- }
- Console.WriteLine();
- Console.WriteLine("Enter another word:");
- Console.WriteLine();
- var word2 = Console.ReadLine();
- if (word2 == "dog")
- {
- Console.WriteLine("kuche");
- }
- else if (word2 == "cat")
- {
- Console.WriteLine("kotka");
- }
- else if (word2 == "pig")
- {
- Console.WriteLine("prase");
- }
- else
- {
- Console.WriteLine("unknown word");
- }
- Console.WriteLine();
- Console.WriteLine("Enter another word:");
- Console.WriteLine();
- var word3 = Console.ReadLine();
- if (word3 == "dog")
- {
- Console.WriteLine("kuche");
- }
- else if (word3 == "cat")
- {
- Console.WriteLine("kotka");
- }
- else if (word3 == "pig")
- {
- Console.WriteLine("prase");
- }
- else
- {
- Console.WriteLine("unknown word");
- }
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement