Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace TennisEquipment
- {
- class Program
- {
- static void Main(string[] args)
- {
- double racketPrice = double.Parse(Console.ReadLine());
- int racketCount = int.Parse(Console.ReadLine());
- int sneakersCount = int.Parse(Console.ReadLine());
- double racketsSum = racketPrice * racketCount;
- double sneackersSum = racketPrice / 6 * sneakersCount;
- double price = (racketsSum + sneackersSum) + ((racketsSum + sneackersSum) * 0.2);
- Console.WriteLine($"Price to be paid by Djokovic {Math.Floor(price / 8)}");
- Console.WriteLine($"Price to be paid by sponsors {Math.Ceiling(price * 7 / 8)}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement