Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Diagnostics.Metrics;
- namespace firstLesson
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int packagesOfPens = int.Parse(Console.ReadLine());
- int packetsOfMarkers = int.Parse(Console.ReadLine());
- int litersOfBoardCleaner = int.Parse(Console.ReadLine());
- int discount = int.Parse(Console.ReadLine());
- double pensPrice = 5.80 * packagesOfPens;
- double markersPrice = 7.20 * packetsOfMarkers;
- double boarderCleanerPrice = 1.20 * litersOfBoardCleaner;
- double priceOfAll = pensPrice + markersPrice + boarderCleanerPrice;
- double discountAmount = priceOfAll * discount / 100;
- double neededMoney = priceOfAll - discountAmount;
- Console.WriteLine(neededMoney);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement