Latest Comp. Science Aptitude Question SOLUTION: Consider the following program
n = b1b2b3 .bm
int n, rev;
rev = 0;
while (n > 0) {
rev = rev * 10 + n %10;
n = n/10;
}
Pure mathematics is the world's best game. It is more absorbing than chess, more of a gamble than poker, and lasts longer than Monopoly. It's free. It can be played anywhere - Archimedes did it in a bathtub.
Richard J. Trudeau, Dots and Lines
Medicine makes people ill, mathematics make them sad and theology makes them sinful.