import java.io.*;
import java.lang.*;
class Div
{
public static void main(String args[])throws IOException
{
int n1=0,n2;
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter first number: ");
n1=Integer.parseInt(br.readLine());
System.out.println("Enter second number: ");
n2=Integer.parseInt(br.readLine());
n1/=n2;
System.out.println("Division of two numbers is: "+n1);
}
}
OUTPUT:
Compilation: javac Div.java Run : java Div Enter first number: 10 Enter second number: 5 Division of two numbers is: 2