I dont know if Im far off with this, The user enters their name and I want them to only enter in a string so if they enter in a number Id like an error message, any ideas?
program Word;
uses crt;
var
letter: string;
begin
clrscr;
Repeat
writeln('What is your name? ');
readln(letter);
if (letter >=UPCASE('a')) AND (letter <=UPCASE('z')) then
begin
writeln('Correct Answer ');
end
else
begin
writeln('Word needs to be entered');
end;
Until (letter >=UPCASE('a')) AND (letter <=UPCASE('z'));
{-------------------Printing Results------------------}
writeln('The name is ', letter);
readln;
end.