Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _05.SuppliesForSchool
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int numberOfPens = int.Parse(Console.ReadLine());
- int numberOfMarkers = int.Parse(Console.ReadLine());
- int preparatLiters = int.Parse(Console.ReadLine());
- int percent = int.Parse(Console.ReadLine());
- double priceForPens = numberOfPens * 5.80;
- double priceForMarkers = numberOfMarkers * 7.20;
- double priceForPreparat = preparatLiters * 1.20;
- double sumForProducts = priceForMarkers + priceForPreparat + priceForPens;
- double endPercent = sumForProducts - (sumForProducts * percent / 100);
- Console.WriteLine(endPercent);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement