Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace exampreparation
- {
- class exam
- {
- static void Main(string[] args)
- {
- int chickenMenu = int.Parse(Console.ReadLine());
- int fishMenu = int.Parse(Console.ReadLine());
- int veggieMenu = int.Parse(Console.ReadLine());
- double chickenPrice = chickenMenu * 10.35;
- double fishPrice = fishMenu * 12.40;
- double veggiePrice = veggieMenu * 8.15;
- double products = chickenPrice + fishPrice + veggiePrice;
- double dessert = products * 0.20;
- double fullPrice = products + dessert + 2.50;
- Console.WriteLine($"Total: {fullPrice:f2}");
- }
- }
- }
Add Comment
Please, Sign In to add comment