Advertisement
marto9119

Untitled

Jan 9th, 2023
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.70 KB | Source Code | 0 0
  1. using System;
  2.  
  3. namespace HelloSoftUni
  4. {
  5.     class Program
  6.     {
  7.         static void Main(String[] args)
  8.         {
  9.             int chickenMenu = int.Parse(Console.ReadLine());
  10.             int fishMenu = int.Parse(Console.ReadLine());  
  11.             int veganMenu = int.Parse(Console.ReadLine());
  12.             // chicken - 10.35
  13.             // fish -12.40
  14.             // vegan - 8.15
  15.             // desert 20% from all price
  16.             // delivery  2.50
  17.  
  18.             double price = (((chickenMenu * 10.35) + (fishMenu * 12.40) + (veganMenu * 8.15)) + (((chickenMenu * 10.35) + (fishMenu * 12.40) + (veganMenu * 8.15)) * 0.20) + 2.50);
  19.             Console.WriteLine(price);
  20.  
  21.  
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement