Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.72 KB | None | 0 0
  1.  
  2.         static void Main(string[] args)
  3.         {
  4.             string poruka;
  5.             Console.WriteLine("Unesite boju");
  6.             string boja = Console.ReadLine();
  7.             switch (boja) {
  8.                 case "zuta":
  9.                     poruka = "kao sunce";
  10.                     break;
  11.                 case "zelena":
  12.                     poruka = "kao govno posle pelinkovca";
  13.                     break;
  14.                 case "crvena":
  15.                     poruka = "kao srce";
  16.                     break;
  17.                 default:
  18.                     poruka = "Prijatan dan govna!";
  19.                     break;  
  20.             }
  21.             Console.WriteLine(poruka);
  22.             Console.ReadLine();
  23.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement