Thread
:
A little lost with for loops and making a design
View Single Post
#
3
(
permalink
)
01-21-2008, 11:01 PM
dejavujr
Member
Join Date: Jan 2008
Posts: 2
int n = 5;
for(int j = 0; j < n; j++)
{
for (int x = 0; x<=j ; x++) {
System.out.print("*");}
System.out.println();}
will dispaly
*
**
***
****
*****
dejavujr
View Public Profile
Send a private message to dejavujr
Find all posts by dejavujr