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) {
- double zp, taxes;
- Scanner in = new Scanner(System.in);
- zp = in.nextDouble();
- if (zp <= 20000) {
- taxes = 13;
- zp = zp - zp/100 * taxes;
- }
- else if (zp >= 20000 & zp <= 40000) {
- taxes = 10;
- zp = zp - zp/100 * taxes;
- }
- else {
- taxes = 8;
- zp = zp - zp/100 * taxes;
- }
- System.out.println(zp);
- }
- }
Add Comment
Please, Sign In to add comment