DIM X, a, b AS INTEGER INPUT X a = 0 b = 0 WHILE X > 0 a = a + 1 IF X DIV 10 > 0 THEN b = b + 1 END IF X = X DIV 2 END WHILE PRINT a PRINT b