package ch02;
public class Test2_12{
    public static void main(String[] args) {
        double a,a2,a12,a3,a13;
        Scanner cin=new Scanner(System.in);
        a=cin.nextDouble();
        a2=Math.round(a*a*100)/100.0;;
        a12=Math.round(Math.sqrt(a)*100)/100.0;
        a3=Math.round(Math.pow(a, 3)*100)/100.0;;
        a13=Math.round(Math.pow(a,1.0/3)*100)/100.0;
         System.out.println("平方值="+a2);
        System.out.println("平方根值="+a12);
        System.out.println("立方值="+a3);
        System.out.println("立方根值="+a13);
    }
}
