Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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
231,248 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
231,248 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)