Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Repainting
- {
- class Program
- {
- static void Main()
- {
- int nylon = int.Parse(Console.ReadLine());
- int paint = int.Parse(Console.ReadLine());
- int thinner = int.Parse(Console.ReadLine());
- int hours = int.Parse(Console.ReadLine());
- double materials = (nylon + 2) * 1.50 + paint * 14.50 * 1.1 + thinner * 5 + 0.40;
- double workers = materials * hours * 0.30;
- Console.WriteLine(materials + workers);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement