This is for the Mario pyramid. I am having trouble with it. I finally got the left sided one working but I can't figure out how to put my .s and my #s on the same line when trying to make the side that leans to the left. Thank you


A FOR statement has 3 parts, separated by semicolons. The for statement in the title only has two. The compiler is expecting a second semicolon.

For statement format:

for (initialization ; test ; increment )

Perhaps you want to use a while statement instead?

If this answers your question, please click on the check mark to accept. Let's keep up on forum maintenance. ;-)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .