sábado, 4 de abril de 2015

Ejercicio 4



El nro. ingresado será aumentado en 1.
Declaro 2 variables enteras y le indico al programa que la variable Y sera sumado + 1.



 */
package ejercicio4;
import java.io.*;
/**
 *
 * @author CLAUDIA INGA
 */
public class Ejercicio4 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException{
        // TODO code application logic here
     int Y,Z;
   
 
     BufferedReader in =new BufferedReader(new  InputStreamReader(System.in));
   System.out.println("ingresar un numero");

   Y=Integer.parseInt(in.readLine());
 
 
   Z=(Y+1);
       System.out.println("EL NUMERO AUMENTADO EN UNO ES  "+Z);
   
   
     
   
    }
}


No hay comentarios:

Publicar un comentario