Star Printing in Java-03


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

Comments

Popular posts from this blog

GL_QUAD_STRIP Example In OpenGl

GL_POLYGON Example In OpenGl