Advertisement
BojidarDosev

zad 3 dimana

Sep 26th, 2021
846
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.62 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp9
  4. {
  5.     class Program
  6.     {
  7.  
  8.        
  9.  
  10.         static void Main(string[] args)
  11.         {
  12.             string name = Console.ReadLine();
  13.             switch (name)
  14.             {
  15.                 case "dog":
  16.                     Console.WriteLine("mamal");
  17.                     break;
  18.                 case "snake": case "tortoise": case "crocodile":
  19.                     Console.WriteLine("reptile");
  20.                     break;
  21.                 case "cat":
  22.                     Console.WriteLine("unknown");
  23.                     break;
  24.             }
  25.            
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement