EnterosApp

EnterosApp - double n3 = teclado.nextDouble(); d num = new...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.io.*; import java.util.*; i public class EnterosApp{ p public static Enteros num; public static Scanner teclado; p public static void main(String args[]){ p teclado = new Scanner(System.in); t System.out.println("Ingresa el valor de X:"); double n1 = teclado.nextDouble(); System.out.println("Ingresa el valor de Y:"); double n2 = teclado.nextDouble(); System.out.println("Ingresa el valor de Z:");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: double n3 = teclado.nextDouble(); d num = new Enteros(n1, n2, n3); n System.out.println("\nLa operacin de x / y es: " +num.op1()); System.out.println("La operacin de x modulo y es: " + num.op2()); System.out.println("La operacin de x / y - z es :" + num.op3()); System.out.println("La operacin de x / (y - z) es :" + num.op4()); S } }...
View Full 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.

Ask a homework question - tutors are online