Program Code
 package assignment;

 import java.util.Scanner

public class InputOutput{
  public static void main(String[] args){
   double Output = 0;
   Scanner a = new Scanner(System.in);
   System.out.print("Enter the value: ");
   int input = a.nextInt();
   a.close();
   if(input<=10000){
    output = input;
    System.out.println("\nYour Output is: "+output);
   }
  }
 }
Code Objective
Explanation
Console
Enter the number of units: