softech2608
Newbie level 1
![Newbie level 1](/styles/images/ranks/alevel1.gif)
it will use alart to display square of number
n is the number eg 10 means alert will display 1....10 squares
var s=0;
for(i=1;i<=n;i++)
{
var s;
s=s+i+"-"+i*i+"\n";
}alert("the squares roots of number n are as follows \n"+s);
the bolded protion i could not understand plz help me
n is the number eg 10 means alert will display 1....10 squares
var s=0;
for(i=1;i<=n;i++)
{
var s;
s=s+i+"-"+i*i+"\n";
}alert("the squares roots of number n are as follows \n"+s);
the bolded protion i could not understand plz help me