Advertisement
Spocoman

06. Repainting

Nov 14th, 2021 (edited)
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Repainting
  4. {
  5.     class Program
  6.     {
  7.         static void Main()
  8.         {
  9.             int nylon = int.Parse(Console.ReadLine());
  10.             int paint = int.Parse(Console.ReadLine());
  11.             int thinner = int.Parse(Console.ReadLine());
  12.             int hours = int.Parse(Console.ReadLine());
  13.  
  14.             double materials = (nylon + 2) * 1.50 + paint * 14.50 * 1.1 + thinner * 5 + 0.40;
  15.             double workers = materials * hours * 0.30;
  16.  
  17.             Console.WriteLine(materials + workers);
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement