ayuda con programita chiquito principiante
Publicado por Sergio (2 intervenciones) el 22/08/2005 21:16:10
public class Trabajo7
{public static void main (String args[])throws Exception
{InputStreamReader f= new InputStreamReader(System.in);
BufferedReader t=new BufferedReader(f);
System.out.println("Ingrese un nº:");
int a=Integer.parseInt(t.readLine());
System.out.println("Ingrese otro nº:");
int b=Integer.parseInt(t.readLine());
System.out.println("La suma es:"+(a+b));
System.out.println("La diferencia es:"+(a-b));
System.out.println("El producto es:"+(a*b));
System.out.println("El cociente entero es:"+(a/b));
{public static void main (String args[])throws Exception
{InputStreamReader f= new InputStreamReader(System.in);
BufferedReader t=new BufferedReader(f);
System.out.println("Ingrese un nº:");
int a=Integer.parseInt(t.readLine());
System.out.println("Ingrese otro nº:");
int b=Integer.parseInt(t.readLine());
System.out.println("La suma es:"+(a+b));
System.out.println("La diferencia es:"+(a-b));
System.out.println("El producto es:"+(a*b));
System.out.println("El cociente entero es:"+(a/b));
Valora esta pregunta


0