Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace magazinZaCvetq
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. var magnoli = double.Parse(Console.ReadLine());
  14. var zium = double.Parse(Console.ReadLine());
  15. var rozi = double.Parse(Console.ReadLine());
  16. var kaktusi = double.Parse(Console.ReadLine());
  17. var podarak = double.Parse(Console.ReadLine());
  18.  
  19. var sum = magnoli * 3.25 + zium * 4 + rozi * 3.50 + kaktusi * 8;
  20. var danuk = sum * 0.05;
  21. var pechalba = sum - danuk;
  22. var pari = podarak - pechalba;
  23.  
  24. if (pari < podarak)
  25. {
  26. Console.WriteLine("She will have to borrow "+"{0}", pari + " leva." );
  27. }
  28. else if (pari > podarak)
  29. {
  30. Console.WriteLine("She is left with " + "{0}",pari + " leva.");
  31. }
  32.  
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement