SCRIPT AS203
function ok = AS203(NR)
ok=1;
EX={'MUE' 'PLM' 'FMM' 'SVF'};
CC=str2num(NR(4:5));
if CC<05 || CC>33
    ok=0;
end
L=NR(7);
if L=='I' || L=='O'
    ok=0;
end
LLL=NR(7:9);
for i=1:length(EX)
    if strcmp(LLL,EX(1,i))==1
        ok=0;
    end
end
end
PROBLEMA A203
NR=input('Numar dorit: ','s');
ok=AS203(NR);
if ok==1
    disp('Numarul este disponibil')
else
    disp('Numarul nu este disponibil')
end