for ii=1:10
 if (mod(ii,2) == 0)
   fprintf('ii=%d\n',ii);
 else
   fprintf('ii=%d is odd\n',ii);
 end
end
