Advertisement
ada1711

Untitled

Jul 21st, 2024
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. string word = Console.ReadLine().ToLower();
  2.  
  3. switch (word)
  4. {
  5. case "cat":
  6. case "katze":
  7. Console.WriteLine("cat - Katze");
  8. break;
  9. case "dog":
  10. case "hund":
  11. Console.WriteLine("dog - Hund");
  12. break;
  13. case "house":
  14. case "haus":
  15. Console.WriteLine("house - Haus");
  16. break;
  17. case "flower":
  18. case "blume":
  19. Console.WriteLine("flower - Blume");
  20. break;
  21. case "chair":
  22. case "stuhl":
  23. Console.WriteLine("chair - Stuhl");
  24. break;
  25. case "apple":
  26. case "apfel":
  27. Console.WriteLine("apple - Apfel");
  28. break;
  29. default:
  30. Console.WriteLine("Word not known in the dictionary.");
  31. break;
  32. }
  33.  
  34. Console.ReadKey();
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement