viernes, 10 de abril de 2015
secuencial18
En este ejercicio demostraremos el resultado de la variable puesta entre 100.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package algo_sec_18
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
*
*
*/
public class ALGO_SEC_18 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException {
// TODO code application logic here
int h,p ;
BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
System.out.println("ingresar un número para ser sumado mas 100");
p=Integer.parseInt(in.readLine());//o
h= (p+ 100);
System.out.println("el resultado del número sumado mas 100 es:"+h);
}
}
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario