import java.util.*;
import java.lang.*;
import java.io.*;
//You are given an integer A.
//You have to find the value of cube of A i.e, A3.
// The main method must be in a class named "Main".
public class Main {
    public static void main(String[] args) {

        Scanner scn = new Scanner(System.in);
        int A = scn.nextInt();
        int result = jcube(A);            
        System.out.println(result);
        }
     public static int jcube(int A){
        int jcube = 1;
        jcube = A*A*A;
        return jcube;
         
     }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: