Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class P08BasketballEquipment {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int yearTax = Integer.parseInt(scanner.nextLine());
- double priceShoes = yearTax - (yearTax * 0.40);
- double priceSuit = priceShoes - (priceShoes * 0.20);
- double priceBall = priceSuit / 4;
- double priceAcc = priceBall / 5;
- double totalSum = priceShoes + priceSuit + priceBall + priceAcc + yearTax;
- System.out.println(totalSum);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement