Computer Science, asked by baroorkaraniket, 2 months ago

15.Write a program in javascript to accept a number from the user and print square and cube of given number.​

Answers

Answered by santdas36
0

let n = prompt();

n = parseInt(n);

let sqre = n*n;

let cube = sqre*n;

console.log(sqre, cube);

Similar questions