Can anyone tell me how can I insert blanks before the stars to make a perfect pyramid and my first star isn't printing (Solved) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can anyone tell me how can I insert blanks before the stars to make a perfect pyramid and my first star isn't printing (Solved)

https://code.sololearn.com/cde89B9nMQU8/?ref=app

28th Apr 2021, 3:32 PM
SUKHBEER SINGH
SUKHBEER SINGH - avatar
5 Answers
+ 3
Do you mean something like this? https://code.sololearn.com/cCccBWlA1WCQ/?ref=app If so you almost had it. You just had to printf(“ ”); instead of printf(“”); https://code.sololearn.com/cSSfHcYKi1P5/?ref=app
28th Apr 2021, 3:37 PM
Brain & Bones
Brain & Bones - avatar
+ 1
Caleb but still the top star is missing what should I do 🤔
28th Apr 2021, 4:46 PM
SUKHBEER SINGH
SUKHBEER SINGH - avatar
+ 1
SUKHBEER TMU Student remove the equal sign on line twelve. See my code again, i fixed it.
28th Apr 2021, 5:13 PM
Brain & Bones
Brain & Bones - avatar
+ 1
Thanks 👍
28th Apr 2021, 5:23 PM
SUKHBEER SINGH
SUKHBEER SINGH - avatar
+ 1
SUKHBEER TMU Student no problem, and neat code. 😁👍
28th Apr 2021, 5:24 PM
Brain & Bones
Brain & Bones - avatar