Thread
:
A little lost with for loops and making a design
View Single Post
#
4
(
permalink
)
01-21-2008, 11:39 PM
LinxuS
Member
Join Date: Jan 2008
Posts: 6
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..
LinxuS
View Public Profile
Send a private message to LinxuS
Find all posts by LinxuS