Консультации

Can't upload it

Can't upload it

от Даулет Мусабаев -
Number of replies: 1
import java.util.Scanner;

public class esep {
private static final Scanner scanner = new Scanner(System.in);

public static void main(String[] args) {
int n, k;
n = scanner.nextInt();
k = scanner.nextInt();
if(n > k)
System.out.println(1);
else if (n < k)
System.out.println(2);
else
System.out.println(0);
}
}