const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.on("line", function (line: string) { const num = Number(line); const res: number[] = []; const avg = num * num; let loopNum = ...