Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://softuni.bg/downloads/svn/programming-basics-v4/course-directories/may-2019/2019-01/Exam/01.%20Tennis%20Equipment.pdf
- using System;
- namespace _01._Tennis_Equipment
- {
- class Program
- {
- static void Main(string[] args)
- {
- double priceTS = double.Parse(Console.ReadLine());
- int numTS = int.Parse(Console.ReadLine());
- int numSneakers = int.Parse(Console.ReadLine());
- double totalPriceTS = numTS * priceTS;
- double priceSniker = priceTS / 6;
- double totlPriceSnikers = numSneakers * priceSniker;
- double TotalPrice = Math.Round((totalPriceTS + totlPriceSnikers) * 1.2);
- double priceDjokovic = Math.Floor(TotalPrice / 8);
- double priceSponors = Math.Ceiling(TotalPrice * 7 / 8);
- Console.WriteLine($"Price to be paid by Djokovic {priceDjokovic}");
- Console.WriteLine($"Price to be paid by sponsors {priceSponors}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement