Vegetable Market Java
Здравейте,
като въведа числата зададени, като примерни всичко е точно и получавам очаквания резултат, но в Judge ми дава 20/100,
Защо?
Благодаря!
import java.util.Scanner; public class vegetableMarket { public static void main(String[] args) { Scanner scan = new Scanner(System.in); double priceForKgVegetables = Double.parseDouble(scan.nextLine()); double priceForKgFruits = Double.parseDouble(scan.nextLine()); int totalKgOfVegetables = Integer.parseInt(scan.nextLine()); int totalKgOfFruits = Integer.parseInt(scan.nextLine()); double vegetablesCost = priceForKgVegetables * 10; double fruitsCost = priceForKgFruits * 10; double totalIncomeOfFruitsAndVegetables = vegetablesCost + fruitsCost; System.out.printf("%.2f", totalIncomeOfFruitsAndVegetables / 1.94); } }