% while4.m   P.Conrad for CISC106, 07F
% practice problem to test knowledge of while loops
% What is the output?

i = 1;
while (i<10)
  fprintf('o\n');
  i = i * 2;
end
fprintf('x\n');
