Yard greening problem
Здравейте, при решаване на yard greening задачата получавам 70 от 100 точки и имам грешка в кода, която не успявам да уловя.
Моля за помощ :
using System;
namespace Concatenate.Data1
{
internal class Program
{
static void Main(string[] args)
{
//Reading the input from the user
// 1. Square meters of land for greening type -> int
int landForGreening = int.Parse(Console.ReadLine());
// 2. Price for greening type -> double
double priceForGreening = 7.61;
// Logical part of solving the problem
double discount = (landForGreening * priceForGreening) * 0.18;
double finalPrice = (landForGreening * priceForGreening) - discount;
//Printing the final result on the console
Console.WriteLine($"The final price is: {finalPrice } lv.");
Console.WriteLine($"The discount is: {discount} lv.");
}
}
}
Благодаря Ви!
Thank you very much!