Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Strelnikov {
- public static void main(String[] args) {
- Scanner in = new Scanner(System.in);
- double а = 17;
- double b, с;
- System.out.println("Введите сумму: ");
- Double x = in.nextDouble();
- b = (x / 100.00 * 17.00);
- с = (b + x);
- System.out.println("Ваша сумма, после прибавления 17% от прежней: " + (с));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement