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