View Single Post
  #3 (permalink)  
Old 01-21-2008, 11:01 PM
dejavujr dejavujr is offline
Member
 
Join Date: Jan 2008
Posts: 2
dejavujr is on a distinguished road
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
*
**
***
****
*****
Reply With Quote