Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class joroTHeFootbalPlayer
- {
- static void Main(string[] args)
- {
- string Year = Console.ReadLine();
- int holidays = int.Parse(Console.ReadLine());
- byte weekendsInHome = byte.Parse(Console.ReadLine());
- float freshWeekends = (52 - weekendsInHome) * 1/3 * 2;
- float playsInHolidays = holidays / 2;
- float joroPlaysTotal = playsInHolidays + freshWeekends + weekendsInHome;
- if(Year =="t")
- {
- Console.WriteLine((int)joroPlaysTotal + 3);
- }
- if (Year == "h")
- {
- Console.WriteLine((int)joroPlaysTotal);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement