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 AnimalType
- {
- class Program
- {
- static void Main(string[] args)
- {
- var animal = Console.ReadLine().ToLower();
- switch (animal)
- {
- case "dog": Console.WriteLine("mammal"); break;
- case "crocodile":
- case "tortoise":
- case "snake": Console.WriteLine("reptile"); break;
- default: Console.WriteLine("unknown"); break;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement