Advertisement
Guest User

Untitled

a guest
Oct 5th, 2015
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.98 KB | None | 0 0
  1. using System;
  2. using System.Text;
  3.  
  4.  
  5.     class JoroTheFootballPlayer
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double year = 52;
  10.             double h = year - 50;
  11.             int normalWeeks = (int)(year - h);
  12.             double holiday = 0.5;
  13.             int leapYear = 3;
  14.             double normalPlay = (double)((normalWeeks)*h / leapYear);
  15.             double totalPlayNonLeapY = (normalPlay + h + holiday);
  16.             double forLeapYear = totalPlayNonLeapY + 3;
  17.             Console.WriteLine(Math.Truncate(forLeapYear));
  18.             double forYear = forLeapYear - 2;
  19.             Console.WriteLine(Math.Truncate(forYear));
  20.             double holidayP = forLeapYear + 1;
  21.             Console.WriteLine(Math.Truncate(holidayP));
  22.             double hometown = forLeapYear + 3;
  23.             Console.WriteLine(Math.Truncate(hometown));
  24.             double htp = totalPlayNonLeapY + 3;
  25.             Console.WriteLine(Math.Truncate(htp));
  26.         }
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement