Code như sau:
PROGRAM lenh;
VAR
x:INTEGER;
y:INTEGER;
z:INTEGER;
kq:INTEGER;
BEGIN
write('nhap vao x:');
readln(x);
write('nhap vao y:');
readln(y);
write('nhap vao z:');
readln(z);
write('nhap vao x+y+z=?:');
readln(kq);
IF(kq=x+y+z)THEN
writeln('hoan ho');
ELSE
write('rat tiec');
readln;
END.
Khi em compiler thì no báo lỗi như sau:Syntax error,";"expected bu “else” found.Nhờ ai đó giúp dùm em với.Thanks