Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ProgrammingBook
- {
- class Program
- {
- public static void Main()
- {
- double pagePrice = Double.parseDouble(scanner.nextLine()),
- coverPrice = Double.parseDouble(scanner.nextLine()),
- discountPercentage = Double.parseDouble(scanner.nextLine()),
- designerSalary = Double.parseDouble(scanner.nextLine()),
- teamPercentage = Double.parseDouble(scanner.nextLine()),
- totalPrice = ((pagePrice * 899 + coverPrice * 2)
- * (100 - discountPercentage) / 100 + designerSalary)
- * (100 - teamPercentage) / 100;
- Console.WriteLine($"Avtonom should pay { totalPrice:f2} BGN.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement