Challenge -Generate a Word Pyramid | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

Challenge -Generate a Word Pyramid

input : Iloveindia Output: *****************I***************** ****************ILO**************** ***************ILOVIN************** **************ILOVINDI************* *************ILOVEINDIA************ All languages are welcome!!

6th Jan 2018, 2:58 PM
I'm_Groot - avatar
2 Answers
+ 6
@NoorNawazShariff for using the setfill() and setw()
6th Jan 2018, 3:09 PM
I'm_Groot - avatar
6th Jan 2018, 3:40 PM
Sebastián Zapata
Sebastián Zapata - avatar