Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

up with in 2 minutes.

The argument d and n represent denominator and neminator respectively.

void Reduce(int &d, int &n) {

for (int i = n/2; i > 1; i--) {

if ( (n%i) == 0) {

if ( (d%i) == 0) {

n = n / i;

d = d / i;

break;

}

}

}

}