Advertisement
Guest User

Untitled

a guest
Oct 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.72 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Teodor
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             Console.WriteLine("Vyvedi nomer na mesec:");
  10.             int n = int.Parse(Console.ReadLine());
  11.            
  12.             if(n == 12 || n == 1 || n == 2)
  13.             {
  14.                 Console.WriteLine("Zima");
  15.             }else if(n == 3 || n == 4 || n == 5)
  16.             {
  17.                 Console.WriteLine("Prolet");
  18.             }
  19.             else if (n == 6 || n == 7 || n == 8)
  20.             {
  21.                 Console.WriteLine("Lqto");
  22.             }
  23.             else if (n == 9 || n == 10 || n == 11)
  24.             {
  25.                 Console.WriteLine("Esen");
  26.             }
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement