viernes, 10 de abril de 2015
secuencial 17
en este ejercicio ponemos una variable que me de mi edad actual y el resultado sera lo demostrado .
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package algo_sec_17;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
*
* @author HP
*/
public class ALGO_SEC_17 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException {
// TODO code application logic here
int a,s ;
BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
System.out.println(" mi edad actual es");
s=Integer.parseInt(in.readLine());//o
a= s*s*s;
System.out.println("mi edad elevado al cubo sera :"+a);
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario