刚才错的
这个才是
我不会加下去啦
![[泪]](/static/emoticons/u6cea.png)
program cw1;
var
A , B , C , D : integer;
begin
randomize;
A:=random(5)+1;
write('Enter you first gress <1-5>');
readln(B);
if A=B
then
writeln('You guess is Correct!')
else
writeln('You guess is wrong');
write('Enter you first gress <1-5>');
readln(C);
if A=C
then
writeln('You guess is Correct!')
else
writeln('You guess is wrong');
write('Enter you first gress <1-5>');
readln(D);
if A=D
then
writeln('You guess is Correct!')
else
writeln('You guess is wrong! The correct answer is ',A);
readln
end.