Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace FIshLand
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. double skumriqPrice = double.Parse(Console.ReadLine());
  12. double cacaPrice = double.Parse(Console.ReadLine());
  13.  
  14. double amountPalamud = double.Parse(Console.ReadLine());
  15. double amountSafrid = double.Parse(Console.ReadLine());
  16. double kgMidi = double.Parse(Console.ReadLine());
  17.  
  18. double PalamudPrice = skumriqPrice * 1.6;
  19. double safridPrice = cacaPrice * 1.8;
  20. double MidiPrice = 7.5;
  21.  
  22. double palamudFinalPrice = amountPalamud * PalamudPrice;
  23. double safridFinalPrice = amountSafrid * safridPrice;
  24. double midiFinalPrice = kgMidi * MidiPrice;
  25.  
  26. double totalPrice = palamudFinalPrice + safridFinalPrice + midiFinalPrice;
  27.  
  28. Console.WriteLine($"{totalPrice:f2}");
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement