Vegetable Market Задача 4
Здравейте,
Мисля, че правя всичко както трябва, получавам правилния изход и въпреки това получавам 60/100 в Judge. Защо?
package PB_MoreExercises;
import java.util.Scanner;
public class FruitAndVegetable_04 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
double vegetablePrice = Double.parseDouble(scanner.nextLine());
double fruitPrice = Double.parseDouble(scanner.nextLine());
int fruitKilo = Integer.parseInt(scanner.nextLine());
int vegetableKilo = Integer.parseInt(scanner.nextLine());
double vegetableTotal = vegetablePrice * vegetableKilo;
double fruitTotal = fruitPrice * fruitKilo;
double finalSum = (fruitTotal+vegetableTotal) /1.94;
System.out.printf("%.2f",finalSum);
}
}