Write a java program for division of two number. [ Parameterised Input]
Answers
Answered by
0
Answer:
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