import java.applet.Applet;
import java.awt.Color;
import java.awt.Graphics;
public class SecondWork_10_1 extends Applet{
int j =1;
public void paint(Graphics g){
g.setColor(Color.blue);
g.fillRect(0, 0, 210, 240);
g.setColor(Color.pink);
g.drawRect(20, 20, 150, 200);
g.fillRect(20, 20, 150, 200);
while(j>0){
for(int i =0;i<=90;i=i+30){
<
import java.awt.Color;
import java.awt.Graphics;
public class SecondWork_10_1 extends Applet{
int j =1;
public void paint(Graphics g){
g.setColor(Color.blue);
g.fillRect(0, 0, 210, 240);
g.setColor(Color.pink);
g.drawRect(20, 20, 150, 200);
g.fillRect(20, 20, 150, 200);
while(j>0){
for(int i =0;i<=90;i=i+30){
<