07 Pet shop
import java.util.Scanner;
public class PetShop {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int dogs = Integer.parseInt(scan.nextLine());
int animals = Integer.parseInt(scan.nextLine());
double dogfoodprice = 2.50;
int otherfoodprice = 4;
double allfoodcost = (dogs * dogfoodprice) + (animals * otherfoodprice);
System.out.printf("%.2f lv", allfoodcost);
}
}
това ми е кода и не мога да разбера в judg-a защо ми гърми
пробвах го по няколко варианта и все гърми