+ 2
I found 2 error, I marked the lines with the comment: //changed
// Created by Hans Gang
//package iguales.o.no; //changed
import java.util.Scanner;
/*
*Leemos 2 nmerros enteros, qe tendremos que comparar para decidir si son
*iguales o distintos. */
public class IgualesONo {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Escribe un numero: ");
int n1 = sc.nextInt();
System.out.print("Escribe el numero a comparar: ");
int n2 = sc.nextInt();
if (n1 == n2) { //changed
System.out.println("Ambos son iguales");
} else {
System.out.println("los numeros son distintos");
}
}
}



