write a program to input 2 integer and display it's sum, difference, product and division
Answers
Answered by
0
Answer:
import java.util.Scanner;
class Brainly
{
public static void main(String args[])
{
Scanner scanner = new Scanner(System.in);
int a,b;
System.out.println("Enter a number");
a = scanner.nextInt();
System.out.println("Enter another number");
b = scanner.nextInt();
System.out.println("The sum is " + (a + b));
System.out.println("The product is " + a*b);
System.out.println("The qoutient is " + a/b);
}
}
Explanation:
hope it helps ; )
Similar questions