M0Hk

YardGreening

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