Assignment has problem..

i=1
i=i+1 can not be calculated
Fix assignment bugs