Advertisement
Guest User

Untitled

a guest
Oct 31st, 2021
35
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace rumen
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double nailon = double.Parse(Console.ReadLine());
  10.             double boq = double.Parse(Console.ReadLine());
  11.             double razreditel = double.Parse(Console.ReadLine());
  12.             double chas = double.Parse(Console.ReadLine());
  13.  
  14.             double nailonprice = (nailon + 2)* 1.5;
  15.             double boqprice = (boq + boq * 0.1) * 14.50;
  16.             double razreditelprice = razreditel * 5.00;
  17.             double sum = nailonprice + boqprice + razreditelprice + 0.40;
  18.  
  19.  
  20.             double maistora = (sum * 0.3) * chas;
  21.             double vsichko = maistora + sum;
  22.             Console.WriteLine(vsichko);
  23.         }
  24.     }
  25. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement