Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _2._Exam_Preparation
- {
- class Program
- {
- static void Main(string[] args)
- {
- int easterBread = int.Parse(Console.ReadLine());
- int numOfEggCartons = int.Parse(Console.ReadLine());
- int kgCookies = int.Parse(Console.ReadLine());
- double expenses = 3.20 * easterBread + numOfEggCartons * 4.35 + kgCookies * 5.40;
- int numOfEggs = 12 * numOfEggCartons;
- expenses += numOfEggs * 0.15;
- Console.WriteLine($"{expenses:f2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement