Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class ZooShop_04 {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int countDogs = Integer.parseInt(scanner.nextLine());
- int countOthers = Integer.parseInt(scanner.nextLine());
- //разходи = бр. кучета * 2.50 + бр. останалите * 4
- double expenses = (countDogs * 2.50) + (countOthers * 4);
- // System.out.printf("%f lv.", expenses);
- System.out.println(expenses + " lv.");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement