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.

Furquan Ahmad
5,148 PointsPASCAL HELP
Hey I'm learning pascal in A level computing. I'm on case statements/ case branching and i'm stuck with this error :
Fatal: Syntax error, END expected but . found
Here is the code : program littlemenu;
var choice: integer;
begin writeln('what would you like to do ? [1] delete file [2] put file in trash [3] keep file'); readln(choice); case choice of 1: begin; writeln('file deleted');
case choice of
2: begin
writeln('file in trash');
case choice of
3:begin
writeln('file stored safely');
end;
else begin
writeln('Invalid');
end;
end.
1 Answer

Adam Sackfield
Pro Student 19,663 PointsNever seen a Pascal course on here. Try posting your question to http://stackoverflow.com they have a Pascal tag so im sure someone on there will be able to assist. I would be more descriptive in question though or they will mark it down.