
%loop that counts to 10
x=0;
while x~=10
  x=x+1
  pause
end

%loop that counts to 1 by .1
x=0;
while x~=1
  x=x+.1
  pause
end

%try these instead:
%x=0; while x<1-.1/2, x=x+.1, end
%x=0; while x~=1, x=x+1/8, end

