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) {
- int exp;
- Scanner in = new Scanner(System.in);
- exp = in.nextInt();
- if (exp < 0) {
- System.out.println("Пожалуйста, введите корректный стаж работы");
- }
- else if (exp >= 0 & exp < 3) {
- System.out.println("Ваша надбавка - 0%");
- }
- else if (exp >= 3 & exp < 10) {
- System.out.println("Ваша надбавка - 10%");
- }
- else if (exp >= 10 & exp < 20) {
- System.out.println("Ваша надбавка - 20%");
- }
- else if (exp >= 20) {
- System.out.println("Ваша надбавка - 25%");
- }
- }
- }
Add Comment
Please, Sign In to add comment