monkeyslut45

Кирилл Деменев

Oct 27th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main {
  4.  
  5.     public static void main(String[] args) {
  6.         double zp, taxes;
  7.  
  8.         Scanner in = new Scanner(System.in);
  9.         zp = in.nextDouble();
  10.         if (zp <= 20000) {
  11.             taxes = 13;
  12.             zp = zp - zp/100 * taxes;
  13.         }
  14.         else if (zp >= 20000 & zp <= 40000) {
  15.             taxes = 10;
  16.             zp = zp - zp/100 * taxes;
  17.         }
  18.         else {
  19.             taxes = 8;
  20.             zp = zp - zp/100 * taxes;
  21.         }
  22.         System.out.println(zp);
  23.     }
  24. }
Add Comment
Please, Sign In to add comment