Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace homeworkconditional
- {
- class Program
- {
- static void Main(string[] args)
- {
- string leapNormal = Console.ReadLine();
- var p = double.Parse(Console.ReadLine());
- var h = double.Parse(Console.ReadLine());
- var games = ((48 - h) * 3 / 4) + h + (p * 2 / 3);
- if (leapNormal == "leap")
- {
- games *= 1.15;
- }
- Console.WriteLine($"{Math.Floor(games)}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement