0

What wrong in this code

Star pattern https://code.sololearn.com/cuLC8Z4EqLrQ/?ref=app

21st Feb 2020, 6:18 PM
Ajay Pathak
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
21st Feb 2020, 7:47 PM
Trần Tân An Nguyễn
Trần Tân An Nguyễn - avatar
+ 1
line 13 is not char '* '
21st Feb 2020, 6:43 PM
Oma Falk
Oma Falk - avatar
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...
21st Feb 2020, 8:35 PM
Jayakrishna 🇮🇳