
brz = 'Enter nuber:\n';
dJelIlac = 2;






% This scrip comutes whteher a numer si perfect

a2 = dJelIlac

        brz = input(brz); % This wil aks the user to enter a number and stor it in da var named brojUlaznih and there i nuthing echoed to the scren coz of the ;
        
while (a2 < brz)
    
    x5 = a2;
    
if (rem(brz,x5) ...
    == 0)

        ans = ans + x5;
        end

        a2 = x5 + 1; % This taeks the curent val of a2 and ads hte number 1 to iy and stores it back in the variable a2 and does not echo anything to the command window because O put a   ; in theer
end % This is the end of the LOOP

if (ans == brz)
    fprintf('perfcct')
else
    disp('imperfect')
end

