Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class targil7
- {
- static Scanner reader = new Scanner (System.in);
- /**
- * @param args
- */
- public static void main(String[] args)
- {
- int days;
- int Salary = 10000;
- System.out.println ("enter number of days");
- days = reader.nextInt();
- if (days == 0)
- {
- System.out.println ("Your salary is " + Salary*1.10 );
- }
- if (days == 1)
- {
- System.out.println ("Your salary is " + Salary*1.05 );
- }
- if (days == 2)
- {
- System.out.println ("Your salary is " + Salary*1.03 );
- }
- if (days >= 3)
- {
- System.out.println ("Your salary is " + Salary );
- }
- }
- }
Add Comment
Please, Sign In to add comment