Animal Type
Това си е наред пак не минава в джъджа ??? :X
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Animal_Type
{
class Program
{
static void Main(string[] args)
{
switch (animal)
{
case "dog": Console.WriteLine("mammal"); break;
case "crocodile":
case "tortoise":
case "snake": Console.WriteLine("reptile"); break;
default: Console.WriteLine("unknown"); break;
}
}
}
}