Tuesday, November 20, 2012

Star Printing 1

class Stars
{
public static void main (String[] args)
{

int a, m;
for (a = 1 ; a <= 8 ; a++)
{
for (m= 1 ; m<=a ; m++)
{
System.out.print ("*");
}
System.out.println("");
}


}
}

No comments: