Hacker News new | past | comments | ask | show | jobs | submit login

Quote 1: "write('Strike a key when ready ...');

     readln;"
Should've been "write('Press Enter when ready ...');" because "readln" will wait only for <ENTER> key to continue. Anything else you press meanwhile will just appear on screen.

OR

instead of "readln;" put "readkey;" - that one would've simply continued regardless of whatever you'd press (well, CTRL / SHIFT not included).

======================

Quote2: "writeln(''); writeln('');"

Unnecessary. If you want empty lines you can simply say "writeln;writeln;" - no parameters required.

=======================

Quote3: "while true do begin

.

.

.

     if (length <= 4) then
               break;
     end;"
Oh boy, do I spot a C/C++ programmer. Here is the better solution:

"repeat

.

.

.

until length <= 4"




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: