Sum, multiplication, and division of two integers

Report a typo

Given two integers, your task is to calculate their sum, multiplication result, and the result of the first integer divided by the second integer (without decimal places). You can assume that the second integer is never zero. First, scan two integers from the standard input. Then, print the three results in separate lines: the sum, multiplication result, and division result.

Sample Input 1:

5
3

Sample Output 1:

8
15
1

Sample Input 2:

10
2

Sample Output 2:

12
20
5
Write a program in Java 17
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
// Create a Scanner object to read input
Scanner scan = new Scanner(System.in);

// Read the first integer
int num1 = scan.nextInt();

// Read the second integer
int num2 = scan.nextInt();

// TODO: Perform addition, multiplication, and division operations
}
}
___

Create a free account to access the full topic