Guest User

Untitled

a guest
Jul 23rd, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. using System;
  2.  
  3.  
  4. namespace JoroTheFootball
  5. {
  6. class Program
  7. {
  8. static void Main()
  9. {
  10. String year = (Console.ReadLine());
  11. int holidays = int.Parse(Console.ReadLine());
  12. int home = int.Parse(Console.ReadLine());
  13. float fresh = (52 - home) * 2 / 3;
  14. float hdays = holidays / 2;
  15. float sum = fresh + hdays + home;
  16.  
  17. if (year == "t")
  18. {
  19. sum = sum + 3;
  20. Console.WriteLine(sum);
  21. }
  22. else
  23. {
  24. Console.WriteLine(sum);
  25. }
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment