№2 04.02.2022

by helpD54

JavaScript

function kvadrat(a,b,c,d,e)
{
let itog = [];
mas.unshift(a,b,c,d,e);
for(let i=0;i<mas.length;i++)
{
let a = Math.pow (mas[i], 2);
itog.push(a);
}
itog.sort(( a, b ) =>  a - b);
return(itog);
}
let vod = kvadrat(-4,-1,0,3,10);
console.log(vod);