Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class bottleDeposit {
- public static void main (String [] args) {
- Scanner scanner = new Scanner(System.in);
- String halfBottles = scanner.nextLine();
- String fullBottles = scanner.nextLine();
- double small = Double.parseDouble(halfBottles);
- double big = Double.parseDouble(fullBottles);
- double resultSmall = small * 0,1;
- double resultBig = big * 0,25;
- double result = resultBig + resultSmall;
- System.out.println(result);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement