Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Exam
- {
- class Program
- {
- static void Main(string[] args)
- {
- double pricePerPage = double.Parse(Console.ReadLine());
- double pricePerFrontPage = double.Parse(Console.ReadLine());
- int discountPercent = int.Parse(Console.ReadLine());
- double designerSalary = double.Parse(Console.ReadLine());
- int teamSalaryPercent = int.Parse(Console.ReadLine());
- double bookPrice = pricePerPage * 899 + pricePerFrontPage * 2;
- double afterDiscount = bookPrice - bookPrice * (double)discountPercent / 100;
- double finalSum = afterDiscount + designerSalary;
- double finalPriceToPay = finalSum - finalSum * (double)teamSalaryPercent / 100;
- Console.WriteLine($"Avtonom should pay {finalPriceToPay:f2} BGN.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement