Write a program that draws eight concentric circles The circles should be separated by 10 pixels.Use the drawArc method of class Graphics. (File must be save as: Assignment10ii.java)

import java.awt.Graphics;
import java.applet.Applet;

public class Assignment10ii extends Applet
{
            public void paint(Graphics g)
            {
                        int i;

                        for (i=1; i<=8; i++)
                        {
                                    g.drawArc(100-10*i, 100-i*10, i*20, i*20, -90, 180);//method drawArc for -90
                                    g.drawArc(100-10*i,100-i*10,i*20,i*20,90,180);//method drawArc for 90
                        }
            }
}


////////////////////////////////////////////
Copy & paste this code in your Textpad & run, then you will get output.......
If you have any problem please comment below.........