0
How can I get the first star in line to make a perfect pyramid ????
4 Answers
+ 7
Add a line break after "Enter the number..."
+ 2
and or start i from 0
for (i = 0; i <= rows; ++i)
+ 2
Thanks for the solution đđ»
+ 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...