Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class P08PetShop {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int countDog = Integer.parseInt(scanner.nextLine());
- int countCat = Integer.parseInt(scanner.nextLine());
- double result = (countDog * 2.5) + (countCat * 4);
- System.out.println(result + " lv.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement