Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace AnimalType
- {
- using System;
- class AnimalType
- {
- static void Main()
- {
- var animal = Console.ReadLine().ToLower();
- switch (animal)
- {
- case "crocodile":
- case "tortoise":
- case "snake":
- Console.WriteLine("reptile"); break;
- case "dog":
- Console.WriteLine("mammal"); break;
- default:
- Console.WriteLine("unknown"); break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement