Advertisement
miglenabs

Untitled

Nov 14th, 2021
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. using System;
  2.  
  3. namespace AnimalType
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. string animal = Console.ReadLine();
  10.  
  11.  
  12. switch (animal)
  13. {
  14. case "dog":
  15. Console.WriteLine("mammal");
  16. break;
  17. case "crocodile":
  18. case "tortoise":
  19. case "snake":
  20. Console.WriteLine("reprile");
  21. break;
  22. default:
  23. Console.WriteLine("unknown");
  24. break;
  25. }
  26. }
  27. }
  28. }
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement