Re: Need help with loop



why isn't the second part of my triangle not working?


for (int row = 1; row <= nLines; row++)
{
for (int star= 1; star <= row; star++)
System.out.print("*");
System.out.println();
}


Note the missing { ?

--
Groetjes, Peter

..\\ PGP/GPG key: http://www.catslair.org/pubkey.asc

.