Advertisement
mihael03

Yard_Greening

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