0

How can I get the first star in line to make a perfect pyramid ????

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

24th May 2023, 5:12 PM
Harshita Tyagi
Harshita Tyagi - avatar
4 Antworten
+ 7
Add a line break after "Enter the number..."
24th May 2023, 5:44 PM
Lisa
Lisa - avatar
+ 2
and or start i from 0 for (i = 0; i <= rows; ++i)
25th May 2023, 3:14 AM
Bob_Li
Bob_Li - avatar
+ 2
Thanks for the solution 🙏🏻
25th May 2023, 3:27 PM
Harshita Tyagi
Harshita Tyagi - avatar
+ 1
Harshita Tyagi Lisa 's suggestion for newline is a good general guide to avoid concatenating prompts and inputs on the same line. Mine is just an alternative solution...
25th May 2023, 4:23 AM
Bob_Li
Bob_Li - avatar