Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Nums1_10
- {
- class Program
- {
- static void Main(string[] args)
- {
- double qMetresGreen = double.Parse(Console.ReadLine());
- double priceGreening = qMetresGreen * 7.61;
- double priceDiscount = 0.18 * priceGreening;
- double finalPrice = priceGreening - priceDiscount;
- Console.WriteLine($"The final price is: {finalPrice} lv.");
- Console.WriteLine($"The discount is: {priceDiscount} lv.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement