Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace HelloSoftUni
- {
- class Program
- {
- static void Main(String[] args)
- {
- int chickenMenu = int.Parse(Console.ReadLine());
- int fishMenu = int.Parse(Console.ReadLine());
- int veganMenu = int.Parse(Console.ReadLine());
- // chicken - 10.35
- // fish -12.40
- // vegan - 8.15
- // desert 20% from all price
- // delivery 2.50
- double price = (((chickenMenu * 10.35) + (fishMenu * 12.40) + (veganMenu * 8.15)) + (((chickenMenu * 10.35) + (fishMenu * 12.40) + (veganMenu * 8.15)) * 0.20) + 2.50);
- Console.WriteLine(price);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement