15.Write a program in javascript to accept a number from the user and print square and cube of given number.
Answers
Answered by
0
let n = prompt();
n = parseInt(n);
let sqre = n*n;
let cube = sqre*n;
console.log(sqre, cube);
Similar questions
Social Sciences,
1 month ago
Geography,
1 month ago
Science,
1 month ago
Math,
2 months ago
Physics,
2 months ago