Advertisement
Guest User

Todor Klasnakov

a guest
Sep 26th, 2014
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 KB | None | 0 0
  1.  
  2. using System;
  3.  
  4.     class joroTHeFootbalPlayer
  5.     {
  6.         static void Main(string[] args)
  7.         {
  8.             string Year = Console.ReadLine();
  9.             int holidays = int.Parse(Console.ReadLine());
  10.             byte weekendsInHome = byte.Parse(Console.ReadLine());
  11.             float freshWeekends = (52 - weekendsInHome) * 1/3 * 2;
  12.             float playsInHolidays = holidays / 2;
  13.             float joroPlaysTotal = playsInHolidays + freshWeekends + weekendsInHome;
  14.  
  15.             if(Year =="t")
  16.             {
  17.                 Console.WriteLine((int)joroPlaysTotal + 3);
  18.             }
  19.             if (Year == "h")
  20.             {
  21.                 Console.WriteLine((int)joroPlaysTotal);
  22.             }
  23.  
  24.  
  25.  
  26.        
  27.         }
  28.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement