Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Text;
- class JoroTheFootballPlayer
- {
- static void Main(string[] args)
- {
- double year = 52;
- double h = year - 50;
- int normalWeeks = (int)(year - h);
- double holiday = 0.5;
- int leapYear = 3;
- double normalPlay = (double)((normalWeeks)*h / leapYear);
- double totalPlayNonLeapY = (normalPlay + h + holiday);
- double forLeapYear = totalPlayNonLeapY + 3;
- Console.WriteLine(Math.Truncate(forLeapYear));
- double forYear = forLeapYear - 2;
- Console.WriteLine(Math.Truncate(forYear));
- double holidayP = forLeapYear + 1;
- Console.WriteLine(Math.Truncate(holidayP));
- double hometown = forLeapYear + 3;
- Console.WriteLine(Math.Truncate(hometown));
- double htp = totalPlayNonLeapY + 3;
- Console.WriteLine(Math.Truncate(htp));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement