Subj : Re: Reversing a number To : comp.programming From : alfps Date : Sun Sep 11 2005 06:34 am * deanfamily11: > [top-posting, excessive quoting] Please don't top-post (corrected). Please don't quote irrelevant material, but do quote the relevant stuff. * deanfamily11: > * Alf P. Steinbach: > > Start by writing out the digits in right-to-left order, by using integer > > division in a loop. Example: 45678/10 = 4567 when "/" denotes integer > > division. And what do you get when you multiply the result by 10? > > I am able to get the last digit out and put it into another integer, but I > can't get it to continue doing it (i.e. input = 12345, final result = 1). I > have tried multiplying the result by 10, but i get get 10 * the number. Please post your code and results. -- A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? .