The following is a simple program on 'while ... do':
program dowhile;
{$APPTYPE CONSOLE}
uses
SysUtils,
Ourcrt;
Var
my_words: string;
begin
my_words:='';
writeln('Enter some words (type "stop" to finish):');
readln(my_words); while (my_words<>'stop')do
begin
clrscr;
writeln('You typed:');
writeln(my_words);
writeln;
writeln('Enter some words (type "stop" to finish):');
readln(my_words); end;
end.
My question is: The above program (the font in green color) and (the font in red color) are similar. I have try to make changes to the 'writeln ('Enter some words (type "fuck" to finish):'); but it only follow the original instruction. How can I understand it?
Cheers,