Advertisement
Guest User

Untitled

a guest
Oct 5th, 2015
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.69 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.             Console.WriteLine("Joro play {0} times in non leap year",Math.Truncate(totalPlayNonLeapY));
  17.             double forLeapYear = totalPlayNonLeapY + 3;
  18.             Console.WriteLine("Joro play {0} times in leap year", Math.Truncate(forLeapYear));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement