Hi.....I am having problem on coding and make a diamond shape with 9 rows.
so, 1st row has 1 star, 2nd row has 3 star, 3rd row has 5 star etc...
I got this so far but just dunno how to continue:
for ( int counter = 1; counter <= number; counter++ )
for ( int side = 1; counter <= side; --side )
System.out.print( ' ' );
for ( int side = 1; side <= number; side++ )
System.out.print( '*' );
Anyone can advise? Thank you so much! I am a beginner, so please be patient~