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
Accountancy,
1 day ago
Math,
1 day ago
English,
3 days ago
Math,
8 months ago
Computer Science,
8 months ago
Computer Science,
8 months ago