Click here to Skip to main content
15,913,055 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Riddle me that Pin
Colborne_Greg8-Feb-14 21:37
Colborne_Greg8-Feb-14 21:37 
GeneralRe: Riddle me that Pin
Mehdi Gholam8-Feb-14 21:46
Mehdi Gholam8-Feb-14 21:46 
GeneralRe: Riddle me that Pin
Colborne_Greg8-Feb-14 23:53
Colborne_Greg8-Feb-14 23:53 
GeneralRe: Riddle me that Pin
Mehdi Gholam9-Feb-14 0:02
Mehdi Gholam9-Feb-14 0:02 
GeneralRe: Riddle me that Pin
Colborne_Greg9-Feb-14 2:12
Colborne_Greg9-Feb-14 2:12 
GeneralRe: Riddle me that Pin
Septimus Hedgehog9-Feb-14 0:33
Septimus Hedgehog9-Feb-14 0:33 
GeneralRiddle me this Pin
Colborne_Greg8-Feb-14 17:54
Colborne_Greg8-Feb-14 17:54 
GeneralRe: Riddle me this Pin
CDP18028-Feb-14 18:46
CDP18028-Feb-14 18:46 
x = 0;
while (x != n)    // n = 20, for example
{
    x += 25;    // x + 25 - 6 - 6 - 6 - 6 = x + 1
    x -= 6;     // loop will iterate n times to reach any positive number
    x -= 6;
    x -= 6;
    x -= 6;
}


Wow. That was hard. I just fell out of bed and still am sleeping to 90%. And, of course, you can also unroll the loop 20 times if it must be the primitive solution.
The language is JavaScript. that of Mordor, which I will not utter here

I hold an A-7 computer expert classification, Commodore. I'm well acquainted with Dr. Daystrom's theories and discoveries. The basic design of all our ship's computers are JavaScript.


modified 9-Feb-14 1:37am.

GeneralRe: Riddle me this Pin
Colborne_Greg8-Feb-14 19:19
Colborne_Greg8-Feb-14 19:19 
GeneralRe: Riddle me this Pin
CDP18028-Feb-14 19:44
CDP18028-Feb-14 19:44 
GeneralRe: Riddle me this Pin
Colborne_Greg8-Feb-14 21:10
Colborne_Greg8-Feb-14 21:10 
GeneralRe: Riddle me this Pin
Nagy Vilmos9-Feb-14 21:48
professionalNagy Vilmos9-Feb-14 21:48 
GeneralRe: Riddle me this Pin
Colborne_Greg10-Feb-14 10:19
Colborne_Greg10-Feb-14 10:19 
GeneralRe: Riddle me this Pin
_Damian S_10-Feb-14 13:42
professional_Damian S_10-Feb-14 13:42 
GeneralFinally some headway today Pin
Mike Hankey8-Feb-14 13:06
mveMike Hankey8-Feb-14 13:06 
GeneralRe: Finally some headway today Pin
Richard Andrew x648-Feb-14 13:32
professionalRichard Andrew x648-Feb-14 13:32 
GeneralRe: Finally some headway today Pin
Mike Hankey8-Feb-14 13:34
mveMike Hankey8-Feb-14 13:34 
GeneralRe: Finally some headway today Pin
JimmyRopes8-Feb-14 16:08
professionalJimmyRopes8-Feb-14 16:08 
GeneralRe: Finally some headway today Pin
Mike Hankey8-Feb-14 16:18
mveMike Hankey8-Feb-14 16:18 
GeneralRe: Finally some headway today Pin
clientSurfer8-Feb-14 16:19
professionalclientSurfer8-Feb-14 16:19 
GeneralRe: Finally some headway today Pin
Mike Hankey8-Feb-14 16:47
mveMike Hankey8-Feb-14 16:47 
GeneralRe: Finally some headway today Pin
OriginalGriff8-Feb-14 19:55
mveOriginalGriff8-Feb-14 19:55 
GeneralRe: Finally some headway today Pin
Mike Hankey8-Feb-14 20:45
mveMike Hankey8-Feb-14 20:45 
GeneralRe: Finally some headway today Pin
CDP18028-Feb-14 20:23
CDP18028-Feb-14 20:23 
GeneralRe: Finally some headway today Pin
Mike Hankey8-Feb-14 20:42
mveMike Hankey8-Feb-14 20:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.