Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _2ndExc_6Task
- {
- class Program
- {
- static void Main()
- {
- double meters = int.Parse(Console.ReadLine());
- double price = meters * 7.61;
- double price1 = price * 0.18;
- double result = price - price1;
- Console.WriteLine($"The final price is: {result:f2} lv.");
- Console.WriteLine($"The discount is: {price1:f2} lv.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement