NumeroApp

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

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

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); System.out.println("°n1: "+n1.toString()+" | n2: "+n2.toString() +" | El Mayor de estos 2 números es: "+n4.traduce()); n4 = n2.elMayor(n3); System.out.println("°n2: "+n2.toString()+" | n3: "+n3.toString()

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.
• Spring '09
• X
• n-1, Minoría de edad, Fuerza Aérea Colombiana, System.out.println("\n************ Menores, static scanner teclado

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern