Computer Science, asked by anshusainibala2557, 3 days ago

Accept the two numbers and display the product and quotient of these two numbers

Answers

Answered by Kittumishrakrishi
1

Answer:

import java.util.Scanner;

public class Computation

{

int product,quotient;

public static void main (String[] args)

{

Scanner sc=new Scanner(System.in);

int num1=sc.nextInt();

int num2=sc.nextInt();

product=num1*num2;

quotient=num1/num2;

System.out.println(“Product is: “+product);

System.out.println(“Quotient is: “+quotient);

}

}

Similar questions