VelizarAvramov

10. Animal Type

Mar 21st, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 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 _10_AnimalType
  8. {
  9. class AnimalType
  10. {
  11. static void Main(string[] args)
  12. {
  13. string animal = Console.ReadLine();
  14.  
  15. if (animal == "dog")
  16. {
  17. Console.WriteLine("mammal");
  18. }
  19. else if (animal == "crocodile" || animal == "tortoise" || animal == "snake")
  20. {
  21. Console.WriteLine("reptile");
  22. }
  23. else
  24. {
  25. Console.WriteLine("unknown");
  26. }
  27. }
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment