x = 1; while ( 1 + x > 1 ), x1 = x;, x = x / 2, pause ( 0.02 ), end

y = 1; while ( y + y > y ), y1 = y;, y = y / 2, pause ( 0.02 ), end

z = 1; while ( z + z > z ), z1 = z;, z = z * 2, pause ( 0.02 ), end

fprintf ( 1, 'The value x = %g is so small that x + 1 = 1.\n', x );
fprintf ( 1, 'but for   x = %g this is not true.\n', x1 );

fprintf ( 1, 'The value y = %g is so small that y/2 = y \n', y );
fprintf ( 1, 'but for   y = %g this is not true.\n', y1 );

fprintf ( 1, 'The value z = %g is so big that z * 2 = z.\n', z );
fprintf ( 1, 'but for   z = %g this is not true.\n', z1 );
