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
Math,
22 days ago
India Languages,
22 days ago
English,
22 days ago
Math,
1 month ago
Physics,
1 month ago