Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int easterBreads = Integer.parseInt(scanner.nextLine()),
- eggPacks = Integer.parseInt(scanner.nextLine()),
- cookies = Integer.parseInt(scanner.nextLine());
- double sum = 3.20 * easterBreads + 4.35 * eggPacks + 5.40 * cookies + 0.15 * 12 * eggPacks;
- System.out.printf("%.2f\n", sum);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement