Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _06.Repainting
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- double oneNylon = 1.5;
- double onePaint = 14.5;
- double oneThinner = 5;
- double priceTorba = 0.40;
- int nylon = int.Parse(Console.ReadLine());
- int paint = int.Parse(Console.ReadLine());
- int thinner = int.Parse(Console.ReadLine());
- int hoursForWorkers = int.Parse(Console.ReadLine());
- double sumForNylon = (nylon + 2) * oneNylon;
- double sumForPaint = (paint + 1.1) * onePaint;
- double sumForThinner = thinner * oneThinner;
- double allSumForMaterials = sumForPaint + sumForThinner + sumForNylon + priceTorba;
- double sumForWorkers = allSumForMaterials * 0.3 * hoursForWorkers;
- double allSum = allSumForMaterials + sumForWorkers;
- Console.WriteLine(allSum);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement