Advertisement
Stan0033

Untitled

Mar 19th, 2021
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. using System;
  2. using System.Text;
  3.  
  4.  
  5. namespace ConsoleApplication5
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11.  
  12.  
  13. int Days = Convert.ToInt32(Console.ReadLine());
  14. int Candymen = Convert.ToInt32(Console.ReadLine());
  15. int Cakes = Convert.ToInt32(Console.ReadLine());
  16. int Gofretas = Convert.ToInt32(Console.ReadLine());
  17. int pancakes = Convert.ToInt32(Console.ReadLine());
  18. //------------------------------
  19. double Cake_Price = 45.00;
  20. double Gofrettes_Price = 5.80;
  21. double pancakes_Price = 3.20;
  22. //------------------------------
  23. double Sum_For_Campaign = (((Cakes * Cake_Price) + (Gofretas * Gofrettes_Price) + (pancakes * pancakes_Price)) * 8.00) * 23;
  24. // double Sum_After_Expenses = Sum_For_Campaign - (Sum_For_Campaign * 1/8);
  25. Console.WriteLine(Convert.ToString(Sum_For_Campaign - (Sum_For_Campaign * 1/8)));
  26.  
  27. }
  28.  
  29. }
  30. }
  31.  
  32.  
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement