Accept the two numbers and display the product and quotient of these two numbers
Answers
Answered by
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
Math,
17 days ago
Geography,
17 days ago
English,
1 month ago
Math,
9 months ago
Computer Science,
9 months ago
Computer Science,
9 months ago