need help with my code

Started by
9 comments, last by Zahlman 19 years, 6 months ago
You also missed some brackets: One opening bracket at the end of the 'if' line, and one closing at the end of the program. It may compile because they balance out, but things don't nest the way you want them to. Oh, once you fix that, make sure you take the "return 0;" out of the while loop. Currently it is outside, but it looks like you were trying to put it inside, which is bad - it won't actually loop that way.

This topic is closed to new replies.

Advertisement