writeln('Question 1: Who is the 3rd president of the United States? ');
readln(president);
case president of
'thomas jefferson','Thomas Jefferson','Thomas jefferson','thomas Jefferson','Jefferson','jefferson','Thomas','thomas':begin
score:=score + 10;
writeln('Congradulations, that is correct, push enter to start the next question.');
readln;
end;
else begin
score:=score - 10;
writeln('That is incorrect. Press enter to advance to the next question.');
readln;
end;
end;
i dont get why it wont work. i am a newbie, so i dont know much about it yet, so help me out guys
readln(president);
case president of
'thomas jefferson','Thomas Jefferson','Thomas jefferson','thomas Jefferson','Jefferson','jefferson','Thomas','thomas':begin
score:=score + 10;
writeln('Congradulations, that is correct, push enter to start the next question.');
readln;
end;
else begin
score:=score - 10;
writeln('That is incorrect. Press enter to advance to the next question.');
readln;
end;
end;
i dont get why it wont work. i am a newbie, so i dont know much about it yet, so help me out guys