My question is the comment in the following code. Thanks in advance.
for( i=0; i<num; i++){ for(j=num-i; j>1; j-- ){ // first pass of this loop should print 5 spaces? Because input (5) minus i (0) should be 5? Also if someone could explain to me why j>1. System.out.print(" "); } for(j=0; j<=i; j++){ System.out.print("* "); } } Console Enter height of pyramid. 5 * * * * * * * * * * * * * * *