package problema.nº2;
import java.io.*;
/**
* @author ABEL MONTALVAN
*/
public class ProblemaNº2 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException {
int n1,n2,s;
BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
System.out.println("numero 1:");
n1 = Integer.parseInt(in.readLine());
System.out.println("numero 2:");
n2 = Integer.parseInt(in.readLine());
s=n1+n2;
System.out.println("");
System.out.println("suma: " +s);
}
}
No hay comentarios:
Publicar un comentario