ejercicios sencillos con estructuras y arreglos

36
ARITMETICA << - Hallar A+B-C+100 Código: [Seleccionar] class JavaAritmetica1 { public static void main (String mago []) { int A, B, C; System.out.print ("Inserte A: "); A = Leer.datoInt (); System.out.print ("Inserte B: "); B = Leer.datoInt (); System.out.print ("Inserte C: "); C = Leer.datoInt (); System.out.println ("\n" + A + " + " + " " + B + " - " + C + " + " + 100 + " = " + (A + B - C + 100)); } } Hallar (a-b)(a+b) Código: [Seleccionar] class JavaAritmetica2 { public static void main (String elMago []) {

Upload: patricia-valdiviezo-criollo

Post on 12-Nov-2014

44 views

Category:

Documents


1 download

TRANSCRIPT

ARITMETICA > SERIES