NumeroApp - import java.io i import java.util p public...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.io.*; import java.util.*; i public class NumeroApp{ p public static Numero n1, n2, n3, n4, n5; public static Scanner teclado; p public static void main(String args[]){ p teclado = new Scanner(System.in); t System.out.println("Ingrese el valor del número 1: "); n1 = new Numero(teclado.nextInt()); System.out.println("Ingrese el valor del número 2: "); n2 = new Numero(teclado.nextInt()); System.out.println("Ingrese el valor del número 3: "); n3 = new Numero(teclado.nextInt()); n System.out.println("\n*********** Igualdades ***********"); if(n1.igual(n2)){ System.out.println("&n1 y n2 sí son iguales."); }else{ System.out.println("“n1 y n2 no son iguales.");} S if(n2.igual(n3)){ System.out.println("&n2 y n3 sí son iguales."); }else{ System.out.println("“n2 y n3 no son iguales.");} S if(n1.igual(n3)){ System.out.println("&n1 y n3 sí son iguales."); }else{ System.out.println("“n1 y n3 no son iguales.");} S System.out.println("\n************ Mayores ************"); n4 = n1.elMayor(n2);
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/29/2009 for the course ITC TC-1002 taught by Professor X during the Spring '09 term at ITESM.

Page1 / 2

NumeroApp - import java.io i import java.util p public...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online