Advertisement
Guest User

Untitled

a guest
Mar 30th, 2019
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace _10.Volleyball
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. string year = Console.ReadLine();
  14. double holidays = double.Parse(Console.ReadLine());
  15. double weekends = double.Parse(Console.ReadLine());
  16.  
  17. double weekendSofia = (48 - weekends) * (3.0 / 4.0);
  18. double holidaysPlay = holidays * (2.0 / 3.0);
  19. double Playeddays = weekendSofia + holidaysPlay + weekends;
  20. if (year == "leap")
  21. {
  22. Playeddays = Playeddays + Playeddays * 0.15;
  23. Console.WriteLine(Math.Floor(Playeddays));
  24. }
  25. else if (year == "normal")
  26. {
  27. Console.WriteLine(Math.Floor(Playeddays));
  28. }
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement