Advertisement
Spocoman

Charity Campaign

Dec 11th, 2021
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1. using System;
  2.  
  3. namespace CharityCampaign
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int days = int.Parse(Console.ReadLine());
  10.             int cookers = int.Parse(Console.ReadLine());
  11.             int cakes = int.Parse(Console.ReadLine());
  12.             int waffle = int.Parse(Console.ReadLine());
  13.             int pancakes = int.Parse(Console.ReadLine());
  14.  
  15.             double sum = days * (cookers * ((cakes * 45) + (waffle * 5.80) + (pancakes * 3.20)));
  16.             Console.WriteLine(sum - sum / 8);
  17.         }
  18.     }
  19. }
  20.  
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement