dragonbs

YardGreening

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