Advertisement
deyanivanov966

09. Yard Greening

Apr 6th, 2021
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Nums1_10
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double qMetresGreen = double.Parse(Console.ReadLine());
  10.  
  11.             double priceGreening = qMetresGreen * 7.61;
  12.             double priceDiscount = 0.18 * priceGreening;
  13.             double finalPrice = priceGreening - priceDiscount;
  14.  
  15.             Console.WriteLine($"The final price is: {finalPrice} lv.");
  16.             Console.WriteLine($"The discount is: {priceDiscount} lv.");
  17.  
  18.         }
  19.     }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement