html
html
1
2
3
4
5
6
7
8
9
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
body {
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* This code is an answer to https://www.sololearn.com/Discuss/931147/?ref=app */
// the function
function perfSqr (num) {
var max = Math.floor(Math.sqrt(num - 1));
var ans = [];
for (var i = 1; i <= max; i++) {
ans[i - 1] = i * i;
}
return ans;
}
// input and output
alert(perfSqr(prompt()));
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run