Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ChristmasPreparation
- {
- class Program
- {
- static void Main(string[] args)
- {
- double paperPrice = double.Parse(Console.ReadLine()) * 5.80;
- double clothPrice = double.Parse(Console.ReadLine()) * 7.20;
- double gluePrice = double.Parse(Console.ReadLine()) * 1.20;
- double discount = (100 - double.Parse(Console.ReadLine())) * 0.01;
- Console.WriteLine($"{(paperPrice + clothPrice + gluePrice) * discount:f3}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement