08. Yard Greening
Здравейте!
Имам проблем със задачата и системата ми дава 70/100. Не мога да разбера къде ми е грешката.
import java.util.Scanner; public class YardGreening { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); double squareMeters = Integer.parseInt(scanner.nextLine()); double priceForLandscaping = squareMeters * 7.61; double priceForLandscapingDiscount = (0.18 * priceForLandscaping); double totalPrice = (priceForLandscaping - priceForLandscapingDiscount); System.out.printf("The final price is: %.2f lv.%n", totalPrice); System.out.printf("The discount is: %.2f lv.", priceForLandscapingDiscount); } }