05.- RADICACION
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package problema05;
import java.io.*;
/**
*
* @author AB EL MONTALVAN
*/
public class PROBLEMA05 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException {
short n,r;
int a;
BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
System.out.println("a: ");
a=Integer.parseInt(in.readLine());
System.out.println("n: ");
n=Short.parseShort(in.readLine());
// TODO code application logic here
r=(short)Math.pow((double)a, (1/(double)n));
System.out.println("");
System.out.println("Radicación: "+r);
// TODO code application logic here
}
}
No hay comentarios:
Publicar un comentario