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);
- Console.WriteLine("Joro play {0} times in non leap year",Math.Truncate(totalPlayNonLeapY));
- double forLeapYear = totalPlayNonLeapY + 3;
- Console.WriteLine("Joro play {0} times in leap year", Math.Truncate(forLeapYear));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement