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!

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

General Discussion


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
  writeln('file stored safely');


  else begin


1 Answer

Never 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.