% Solution 4-20.f index = 1; while z(index)<=50 z(index) = 3; index = index + 1; end