Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace FoodDelivery
- {
- using System;
- class FoodDelivery
- {
- static void Main()
- {
- int countChikens = int.Parse(Console.ReadLine());
- int countFishes = int.Parse(Console.ReadLine());
- int countVegiterian = int.Parse(Console.ReadLine());
- double priceWithoutDesert = countChikens * 10.35 + countFishes * 12.40 + countVegiterian * 8.15;
- double desertPrice = priceWithoutDesert * 0.20;
- Console.WriteLine($"Total: {(priceWithoutDesert +desertPrice + 2.50):F2}");
- }
- }
- }
Add Comment
Please, Sign In to add comment