How can i generate the next rational number into 2 integer variables. For example, If i have x=3 and y = 2 the next rational number is x=3 and y=3. The number generation need to be like the next order:
Someone has an idea how can I implement it? Thanks
n is numerator, d is denominator: