Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.Scanner;
- public class Main {
- public static void main(String[]args) {
- System.out.println("Введите ваш доход: ");
- Scanner sc = new Scanner(System.in);
- double income = sc.nextDouble();
- double sum = 0;
- double tax = 0.15 * income;
- if ((income > 0)) {
- System.out.printf("Ваш налог: %.2f USD", tax);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement