Computer Science, asked by pratimakumari282006, 8 months ago

write a program to input two integers using scanner and find the product of their sum and difference​

Answers

Answered by yesiamin6
2

Answer:

import java.util.Scanner;

public class product {

public static void main(String[] args) {

int num1, num2, mul;

Scanner sc = new Scanner(System.in);

System.out.println("Enter First Number: ");

num1 = sc.nextInt();

System.out.println("Enter Second Number: ");

num2 = sc.nextInt();

sc.close();

mul= num1 + num2;

System.out.println("Product of these numbers: "+mul);

}

}

Explanation:

//do follow for more programs hope it helps you

Answered by 8472
2

Answer:

above answer is correct

pls tell in which class do u study

Similar questions