View Single Post
  #4 (permalink)  
Old 01-21-2008, 11:39 PM
LinxuS LinxuS is offline
Member
 
Join Date: Jan 2008
Posts: 6
LinxuS is on a distinguished road
well I got this so far..:

for(int l = 0; l < num; l++)
{
for (int a = 0; a <= l; a++)
System.out.print(" ");

for (int x = 0; x<=l ; x++)
{
System.out.print("*");
}
System.out.println();

}

but the spaces are in reverse order that they need to be..
Reply With Quote