Please help me to print this triangle shape using Java loops

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2008
Posts: 1
Reputation: udani is an unknown quantity at this point 
Solved Threads: 0
udani udani is offline Offline
Newbie Poster

Please help me to print this triangle shape using Java loops

 
0
  #1
Aug 21st, 2008
1
121
12321
1234321
123454321
12345654321
1234567654321
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 413
Reputation: sciwizeh is on a distinguished road 
Solved Threads: 22
sciwizeh's Avatar
sciwizeh sciwizeh is offline Offline
Posting Pro in Training

Re: Please help me to print this triangle shape using Java loops

 
0
  #2
Aug 21st, 2008
i think you need to nest For Loops using the counter of the first as the limit for the second
My site, random PM's from people I haven't hear from before will be DELETED
"If people are good only because they fear punishment, and hope for reward, then we are a sorry lot indeed.",
"If we knew what it was we were doing, it would not be called research, would it? "
-Albert Einstein
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC