Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Journey
- {
- class Program
- {
- static void Main(string[] args)
- {
- string Year = Console.ReadLine();
- double Holliday = double.Parse(Console.ReadLine());
- double HomeTown = double.Parse(Console.ReadLine());
- double Week = 48;
- double play = 0;
- double StaySofia = Week - HomeTown;
- double PlaySofia = (StaySofia *3/4)+(Holliday*2/3);
- double PlayHomeTown = HomeTown;
- play = PlayHomeTown+ PlaySofia;
- if (Year == "normal")
- {
- Console.WriteLine(Math.Floor(play));
- }
- else if (Year == "leap")
- {
- play = play+(play * 15 / 100);
- Console.WriteLine(Math.Floor(play));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment