Advertisement
M0Hk

Food Delivery

Sep 17th, 2023 (edited)
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.77 KB | Software | 0 0
  1. using System;
  2. using System.Diagnostics.Metrics;
  3.  
  4. namespace firstLesson
  5. {
  6.     internal class Program
  7.     {
  8.         static void Main(string[] args)
  9.         {
  10.             int chickenMenus = int.Parse(Console.ReadLine());
  11.             int fishMenus = int.Parse(Console.ReadLine());
  12.             int veganMenus = int.Parse(Console.ReadLine());
  13.  
  14.             double chickenPrice = chickenMenus * 10.35;
  15.             double fishPrice = fishMenus * 12.40;
  16.             double veganPrice = veganMenus * 8.15;
  17.  
  18.             double totalMenusPrice = chickenPrice + fishPrice + veganPrice;
  19.             double desertPrice = totalMenusPrice * 0.2;
  20.  
  21.             double grandTotal = totalMenusPrice + desertPrice + 2.5;
  22.  
  23.             Console.WriteLine(grandTotal);
  24.  
  25.  
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement