% print only odd numbers
limit=10;   %p22_whileif.m
i=0;
while (i < limit)
 i=i+1; 
 if ( mod(i,2) == 1)
    fprintf('     %d\n',i);
 end
end
