GUVI
Back

cube finding 

Created 2 years ago
47 Views
1 Comments
Shireen3lMLFp
@Shireen3lMLFp
Shireen3lMLFp
@Shireen3lMLFpProfile is locked. Login

const readline = require('readline');

const inp = readline.createInterface({

input: process.stdin

});

const userInput = [];

inp.on("line", (data) => {

userInput.push(data);

});

inp.on("close", () => {

//start-here

var n;

n=userInput[0];

console.log(n);

var cube;

cube = n*n*n;

console.log(cube);

//end-here

});

i am getting correct output but aftr submit its showing me private testcase y so plz let me know

Comments
Please login to comment.
 
Powered by habitate.io Habitate