import java.awt.*;
import java.applet.*;
public class ForOval extends Applet
{
	public void paint (Graphics g)
  	{
		Color c = new Color (0,225,0);
		int j = 0;
		setBackground (c);
		for (int i=0; i<150; i++)
  			g.drawOval (i,i,50,50);
		for (int i=150; i<250; i++)
		{
  			g.drawOval (i,i-j,50,50);
  			j++;
		}
  	}
}

Click here to go back.

Our aim is to provide information to the knowledge seekers. 


comments powered by Disqus


Footer1