I think I have pretty much finished my source code for my second assignment. It is a menu driven program. I need a little help with one thing.
In module #2
the user is to type in a number.
If the user does not type in a number the program stops.
I need to constuct a invalid portion and I am not sure what I am doing wrong .
This is what I am typing in
n, trialdiv : integer;
prime : boolean;
write ('enter a number:');
If (n < integer) THEN
writeln('You have not selected a number');
writeln('Please try again');
this comes out as expected "(" at the THEN
Please if anyone can look this this over it would be great as it is due this afternoon.
Thank you very much
0 · ·