Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. using System;
  2.  
  3. namespace UchebnaZala
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9.  
  10. double priceSkumriqKg = double.Parse(Console.ReadLine());
  11. double priceCacaKg = double.Parse(Console.ReadLine());
  12. double palamudKg = double.Parse(Console.ReadLine());
  13. double safridKg = double.Parse(Console.ReadLine());
  14. double midiKg = double.Parse(Console.ReadLine());
  15.  
  16.  
  17. double pricePalamud = (priceSkumriqKg * 1.6);
  18. double priceSafrid = (priceCacaKg * 1.8);
  19. double priceMidi = midiKg * 7.50;
  20.  
  21.  
  22.  
  23. double palamudTotal = pricePalamud * palamudKg;
  24.  
  25. double safridTotal = priceSafrid * safridKg;
  26. double midiTotal = priceMidi * midiKg;
  27.  
  28.  
  29. double totalPrice = palamudTotal + safridTotal + midiTotal;
  30.  
  31. Console.WriteLine(Math.Round(totalPrice, 2));
  32.  
  33.  
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement