Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _07.FoodDelivery
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- double chickenMenu = 10.35;
- double fishMenu = 12.4;
- double vegMenu = 8.15;
- double deliveryPrice = 2.5;
- int numberOfChickenMenus = int.Parse(Console.ReadLine());
- int numberOfFishMenus = int.Parse(Console.ReadLine());
- int numberOfVegMenus = int.Parse(Console.ReadLine());
- double priceForChickenMenu = numberOfChickenMenus * chickenMenu;
- double priceForFishMenu = numberOfFishMenus * fishMenu;
- double priceForVegMenu = numberOfVegMenus * vegMenu;
- double priceForAllMenus = priceForChickenMenu + priceForFishMenu + priceForVegMenu;
- double priceForDesert = priceForAllMenus * 0.2;
- double allSum = priceForAllMenus + priceForDesert + deliveryPrice;
- Console.WriteLine(allSum);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement