| Member with 3 posts. THREAD STARTER | | Join Date: Jul 2012 Location: Slovakia Experience: Beginner | |
Solved: Help with Pascal needed! Helo I need a little help , I've downloaded FPC and I tried to write a program in it (the program is from my teacher so i think it must be right) and when I tried to compile it , the 2 errors had occurred:
first .pas (4,6) Fatal : Syntax error ":" expected but ";" found
I don't uderstand this error cause I've been taught that after a line , there comes " ;"
and then the other error:
first .pas (0) Fatal : Compilation aborted
this might be caused by the firts error or?
Here's the program that I've written:
program first;
uses crt;
var A, B, volume: integer;
begin;
clrscr;
write ('type side A');
readln (A);
write ('type side B');
readln (B);
volume:= A*B;
write ('volume is:', volume);
readln;
end. |