Program Ksushaa1999PasswordRepeat;
uses crt;
var
vvod,ok:string;
const
pass='
[email protected]&$45%$!#hftHUgruG';
begin
writeln('*** Alphaeus is thinking... ***');
writeln('*** OK ***');
writeln();
repeat
writeln('Введите пароль ');
readln (vvod);
until vvod=pass;
writeln('Принято');
end.
Program Ksushaa1999PasswordWhile;
uses crt;
var
vvod,ok:string;
const
pass='
[email protected]&$45%$!#hftHUgruG';
begin
writeln('*** Alphaeus is thinking... ***');
writeln('*** OK ***');
writeln();
while vvod<>pass do
begin
writeln('Введите пароль ');
readln (vvod);
end;
writeln('Принято');
end.
Program PKsushaa1999PasswordIf;
uses crt;
var
vvod,ok:string;
const
pass='
[email protected]&$45%$!#hftHUgruG';
label
metka;
begin
writeln('*** Alphaeus is thinking... ***');
writeln('*** OK ***');
writeln();
metka: writeln('Введите пароль ');
readln (vvod);
if vvod<>pass then goto metka;
writeln('Принято');
end.