10. Animal Type / Complex Conditional Statements / Wrong Example
Котката е бозайник. Да се намалят точките в Judge на решилите задачата погрешно! :)
" The domestic cat (Latin: Felis catus) or the feral cat (Latin: Felis silvestris catus) is a small, typically furry, carnivorous mammal."
Examples
Input |
Output |
dog |
mammal |
snake |
reptile |
cat |
unknown |
string animal = Console.ReadLine().ToLower();
switch (animal)
{
case "dog":
Console.WriteLine("mammal");
break;
case "crocodile":
Console.WriteLine("reptile");
break;
case "snake":
Console.WriteLine("reptile");
break;
case "tortoise":
Console.WriteLine("reptile");
break;
default:
Console.WriteLine("unknown");
break;