I see wind mills
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
marc weber wrote:Determine how many times 2 goes into the final digit. (For example, if your number is 416, then 2 goes into 6 three times.)
Remove that last digit from the number and multiply by 5. (So 416 becomes 41, and 41 * 5 is 205.)
Add the results. (3 + 205 = 208.)
When you do things right, people won't be sure you've done anything at all.
When you do things right, people won't be sure you've done anything at all.
marc weber wrote:Determine how many times 2 goes into the final digit. (For example, if your number is 416, then 2 goes into 6 three times.)
Remove that last digit from the number and multiply by 5.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Rod Bossini wrote:Is there a smart manner to determine how many times a given integer n number can be divided by two?
Mike Simmons wrote:Oh, please. The original post was pretty clear on this with its examples.
For example, 2 can be divided one time by 2.
Any odd number can't be divided by 2.
Computers are like air conditioners - They stop working properly when you open Windows
Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Yes. Of course there are. You can have a tri‑state bit (0, 1, −1) and work in ternary arithmetic.Rohan Shenoy wrote:. . . . Are there some edge case in which it's not true?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |