Advertisement
Guest User

Untitled

a guest
Oct 14th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 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. namespace blagotvoritelno
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. var D = int.Parse(Console.ReadLine());
  13. var S = int.Parse(Console.ReadLine());
  14. var T = int.Parse(Console.ReadLine());
  15. var G = int.Parse(Console.ReadLine());
  16. var P = int.Parse(Console.ReadLine());
  17. var torti = T * 45;
  18. var gofreti = G * 5.80;
  19. var palachinki = P * 3.20;
  20. var obshtoDen = (torti + gofreti + palachinki) * S;
  21. var allsum = obshtoDen * D;
  22. var summinus = allsum - (allsum * 1/8);
  23. Console.WriteLine($"{summinus:F2}");
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement