You are on page 1of 1

package payroll;

import java.util.Scanner;

public class payroll {

public static void main(String[] args) {


Scanner user_input=new Scanner(System.in);

System.out.println("Enter a random number: ");


int nums = user_input.nextInt();
if (nums < 0)
{
System.out.println("You entered a negative number.");
int ow = Math.abs(nums);
System.out.println("You owe " + ow + " inorder to break even.");
System.out.println("You have some work to do.");
}
else
{
int ex = nums - 0;
if (ex > 0) {
System.out.println("You are " + ex + " above the zero mark.");
System.out.println("You owe " + ex + " above the zero mark, which
is impressive.");
}
else if(ex == 0)
{
System.out.println("You are only at the zero mark.");
user_input.close();
}
}
}
}

You might also like