Advertisement
Spocoman

Christmas Preparation

Nov 25th, 2021
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ChristmasPreparation
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double paperPrice = double.Parse(Console.ReadLine()) * 5.80;
  10.             double clothPrice = double.Parse(Console.ReadLine()) * 7.20;
  11.             double gluePrice = double.Parse(Console.ReadLine()) * 1.20;
  12.             double discount = (100 - double.Parse(Console.ReadLine())) * 0.01;
  13.  
  14.             Console.WriteLine($"{(paperPrice + clothPrice + gluePrice) * discount:f3}");
  15.         }
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement