var ch,ch1: integer;
beginch: =random(10)+1; writeln('ugadai vvedi chislo ot 1 do 10'); readln(ch1); if ((ch1 < 10) and (ch1 > 0) ) thenif (ch1=ch)then writeln('ty ugadal')else writeln('ty ne ugadal, chislo = ',ch)else writeln('error');
end.
var ch,ch1: integer;
beginch: =random(10)+1; writeln('ugadai vvedi chislo ot 1 do 10'); readln(ch1); if ((ch1 < 10) and (ch1 > 0) ) thenif (ch1=ch)then writeln('ty ugadal')else writeln('ty ne ugadal, chislo = ',ch)else writeln('error');
end.