xxxxxxxxxx
class Square
{
public static void main(String args[])
{
int i,sq=0; //Variable i and sq are declared
for(i=1;i<=10;i++) //for loop execution takes place
{
sq=i*i;
System.out.println("Square of"+i+"="+sq);//Prints the value stored in the variable i and sq.
}
}
}
xxxxxxxxxx
index.html:
.
<div class="square_div">
</div>
.
style.css:
.square_div{
width: <input_width_here>;
height: <input_height_here>;
background-color: <input_color_here>;
}