Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

C# C# Basics (Retired) Perfect if / else if / else

Jushun Blackmon
Jushun Blackmon
3,136 Points


StudentsCode.cs(13,20): error CS1525: Unexpected symbol 21' StudentsCode.cs(13,22): warning CS0642: Possible mistaken empty statement StudentsCode.cs(13,25): error CS1525: Unexpected symbol)', expecting ;' or}' StudentsCode.cs(17,0): error CS1525: Unexpected symbol `else' Compilation failed: 3 error(s), 1 warnings

I keep getting this error don't know where I'm going wrong.

1 Answer

Steven Parker
Steven Parker
218,596 Points

Show us the code you are entering that gets that error and we can probably help you identify the cause.