clear all
X=4122;
K=76;
for I=1:16
    X1=X;
    X2=K;
    Z=X1*X2;
    W=Z/(10^4);
    T=fix(W);
    S=(W-T);
       V=S*(10^4);
       F= fix(V);
       R= F-T
           X=R;
       end
        
