Advertisement
Spocoman

Easter Lunch

Nov 28th, 2021
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. using System;
  2.  
  3. namespace EasterLunch
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int easterBread = int.Parse(Console.ReadLine());
  10.             int eggPack = int.Parse(Console.ReadLine());
  11.             int cookies = int.Parse(Console.ReadLine());
  12.  
  13.             double sum = easterBread * 3.2 + eggPack * 4.35 + cookies * 5.4 + eggPack * 0.15 * 12;
  14.  
  15.  
  16.             Console.WriteLine($"{sum:F2}");
  17.         }
  18.     }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement