You are given with a number "N", find its cube.
Input Description:
A positive integer is provided.
Output Description:
Find the cube of the number.
Sample Input :
2
Sample Output :
8
const readline = require('readline');
const inp = readline.createInterface({
input: process.stdin
});
const userInput = [];
inp.on("line", (data) => {
userInput.push(data);
});
inp.on("close", () => {
var data = userInput[0].split(" ");
var a = parseInt(data[0]);
console.log(a*a*a);
});
Comments
Post a Comment