Computer Science, asked by subanithin, 7 months ago

Java program to divide two numbers( getting input from the user) ​

Answers

Answered by diaroy11jun2008
0

Answer:

Java have numbers but the main thing of Java is ,we shall know coding

Explanation:

import java.util.Scanner;

public class Main {

public static void main(String[] args)

{

Scanner input = new Scanner (System.in);

System.out.print("Input the first number: ");

int a = input.nextInt();

System.out.print("Input the second number: ");

int b = input.nextInt();

int d = (a/b);

System.out.println();

System.out.println("The division of a and b is:" +d);

}

Similar questions