Saturday, April 12, 2014

Star Printing in Java-04


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