Cube of Number Problem
Cube of Number Problem — ExecCode School DSA Practice
Solve the Cube of Number problem on ExecCode. Free online school DSA practice in Combined Simple Logic. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given one whole number N. Your task is to solve Cube of Number. Multiply N by itself three times (N times N times N) and print that cube.
Examples
Input 3; Output 27. Input 2; Output 8
Constraints
-100 <= N <= 100
Practice Cube of Number free on ExecCode. Browse DSA problems, topic map, and placement guides.