0
What wrong in this code
Star pattern https://code.sololearn.com/cuLC8Z4EqLrQ/?ref=app
3 Réponses
0
You should write this by 3 for loops, one for i (row), one for j (draw white-spaces), and one for k (draw stars)
https://code.sololearn.com/crb76B8bM9VJ/?ref=app
+ 1
line 13 is not char '* '
0
Wrong syntax in this.. for(i=0,j=4;i<4,j>0;i++,j--)
Use && not comma...
Should be like
for(i=0,j=4; i<4 && j>0; i++,j--){...
'*' only not '* '
Comment last 4lines of star pattern properly...