Oracle Interview Question

decimal to fraction conversion using loop