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