Program for Division of two input number using 'Java'.
import java.util.Scanner; // Import the Scanner class class division { public static void main(String[] args) { int x, y, div; Scanner sc = new Scanner(System.in); // Create a Scanner object System.out.println("Enter first number:"); x = sc.nextInt(); // Read user input System.out.println("Enter second number:"); y = sc.nextInt(); // Read user input div = x / y; // Calculate the div of x / y System.out.println("Division of entered number is: " + div); // Print the result } }