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) Perform if / else

Getting multiple errors - CS1525 and CS1519. Copied and pasted the code in lesson and still getting same errors.

Adomas Domeika
Adomas Domeika
6,151 Points

Can you paste your code in? Because it is really hard to tell what the errors are without seeing your code...

Description updated with code

Steven Parker
Steven Parker
210,423 Points

The "code" in question is your program, not the text of the error messages.

The best way to share the code is to make a snapshot of your workspace and post the link to it here.

Snapshot provided.

4 Answers

Steven Parker
Steven Parker
210,423 Points

Much better with the snapshot!

So in "Program.cs", on line 12, the semicolon is missing from the end of the statement.

The other errors are apparently side-effects of that same issue.

Thanks Steven!

Tojo Alex
PLUS
Tojo Alex
Courses Plus Student 13,331 Points

when I open your link there is another folder called " Program2.cs " which confuses me please note that the code provided in teachers notes aren't always correct.

I've sorted this out now thanks! :O)