hawzze

yardGreening_SoftUni

Jul 9th, 2020
48
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace softuni1
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.          
  10.             double ozelenqvane = double.Parse(Console.ReadLine());
  11.             double  price = 7.61;
  12.             double sum = ozelenqvane * price;
  13.             double discount = 0.18 * sum;
  14.             double total = sum - discount;
  15.             Console.WriteLine($" The final price is:{total} lv.");
  16.             Console.WriteLine($"The discount is:{discount} lv.");
  17.  
  18.  
  19.         }
  20.  
  21.     }
  22. }
RAW Paste Data