Utwórz diagram klasy z kodu Java
import java.util.*;
public class MathOperations {
public static void main(String[] args) {
int num1,num2;
Scanner sc = new Scanner(System.in);
System.out.print("Input first number : ");
num1 = sc.nextInt();
System.out.print("Input second number : ");
num2 = sc.nextInt();
System.out.println(num1 + " + " + num2 + " = " + (num1 + num2));
System.out.println(num1 + " - " + num2 + " = " + (num1 - num2));
System.out.println(num1 + " x " + num2 + " = " + (num1 * num2));
System.out.println(num1 + " / " + num2 + " = " + (num1 / num2));
System.out.println(num1 + " mod " + num2 + " = " + (num1 % num2));
}
}
lol