OneCompiler

DIVISION WITH USERS INPUT

209
import java.util.Scanner;

 public class Division {
   
 public static void main(String[] args) {
  
  // TODO Auto-Generated meathod stub 
  
  Scanner input = new Scanner(System.in);
  
  double firstNumber=0, secondNumber=0;
  
  double Division;

System.out.println("ENTER FIRST NUMBER:");

firstNumber = input.nextDouble();

System.out.println("ENTER SECOND NUMBER:");

secondNumber = input.nextDouble();

Division = firstNumber / secondNumber;

System.out.println("Division of the two numbers is " +  Division);

}

}