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 people = Integer.parseInt(scanner.nextLine()),
- nights = Integer.parseInt(scanner.nextLine()),
- cards = Integer.parseInt(scanner.nextLine()),
- tickets = Integer.parseInt(scanner.nextLine());
- double total = (20.00 * nights + 1.60 * cards + 6.00 * tickets) * people * 1.25;
- System.out.printf("%.2f\n", total);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement