Im failing to see what Ive done wrong, the syntax is right but the program wont run for me when I enter in a the else statement works tho....
program Word (input, output);
uses crt;
var
number : integer;
letter: string;
begin
{------------Introduction & Setup------------------}
clrscr;
{------VERY User-Friendly------}
Repeat
writeln('Whats the right letter? ');
readln(number);
str(number,letter);
if (letter ='a') then
writeln('Correct Answer ')
else
writeln(' a needs to be entered');
Until (letter = 'a');
{-------------------Printing Results------------------}
writeln('The answer is ', letter);
readln;
end.
Any ideas? Im guessing its something stupid, I just cant seem to see it at the moment.