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