package propuesta.pkg18;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class PROPUESTA18 {
public static void main(String[] args) throws IOException {
// TODO code application logic here
int A,B;
String C = "";
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
System.out.print("PRIMER NUMERO:");
A=Integer.parseInt(in.readLine());//ojo
System.out.print("SEGUNDO NUMERO:");
B=Integer.parseInt(in.readLine());//ojo
if(A>B){
C = "A Es Mayor que B";
}else{
if(B>A){
C = "B Es Mayor que A";
}
}
if(A==B){
C = "A Es igual a B";
}
System.out.println("RESULTADO: " +C);
}
}
No hay comentarios:
Publicar un comentario