Hello! Tell me on the instructions whether the code is correct or what can be added or simplified?
Create a program that displays the nearest and least to 10 of the two numbers written in the variables m and n.
public class Test { public static void main(String args[]) { int n = 11; int m = 7; if (n < m) { System.out.println("ΠΠ»ΠΈΠΆΠ°ΠΉΡΠ΅Π΅ ΡΠΈΡΠ»ΠΎ ΠΊ 10 = " + m); } else { System.out.println("ΠΠ»ΠΈΠΆΠ°ΠΉΡΠ΅Π΅ ΡΠΈΡΠ»ΠΎ ΠΊ 10 = " + n); } if (n > m) { System.out.println("ΠΠ°ΠΈΠΌΠ΅Π½ΡΡΠ΅Π΅ ΡΠΈΡΠ»ΠΎ ΠΊ 10 = " + m); } else { System.out.println("ΠΠ°ΠΈΠΌΠ΅Π½ΡΡΠ΅Π΅ ΡΠΈΡΠ»ΠΎ ΠΊ 10 = " + n); } } }