Saturday, April 12, 2014

Star Printing in Java-05


import java.util.*;
public class Star6
{
public static void main(String args[])
{
for(int row=1;row<=6;row++)
{
for(int s=row;s<=5;s++)
System.out.print(" ");
for(int col=1;col<=2*row-1;col++)
System.out.print("*");
{
System.out.println();
}
}
}
}