Off-topic chat. May contain offensive language or images.
User avatar
By Vivienne
#339456
Sam declared, "My 5 children were all born two years apart".

Steve nodded. "But how old are they now?"

Sam thought for a moment. "Put it this way," he replied. "If you devide the square of the age of the oldest by a certain whole number, you get the total of their ages".

So.. what is the answer?
User avatar
By Console
#339469
This one needs bruteforcing: -

Code: Select alljavascript:for(var a=8;a<50;a++){x=a * a / ( 5 * a - 20 );if(x == Math.floor(x)){ alert("Answer = "+(a-8) + ", "+(a-6) + ", "+(a-4) + ", "+(a-2) + " & "+a); break}};void('')


Gives - 12, 14, 16, 18 & 20.
User avatar
By Yudster
#339470
I love it when Console uses brute force.
User avatar
By Yudster
#339473
It would probably make a better sig if someone other than me had said it I reckon.
User avatar
By Yudster
#339476
See?
User avatar
By Vivienne
#339508
Console wrote:This one needs bruteforcing: -

Code: Select alljavascript:for(var a=8;a<50;a++){x=a * a / ( 5 * a - 20 );if(x == Math.floor(x)){ alert("Answer = "+(a-8) + ", "+(a-6) + ", "+(a-4) + ", "+(a-2) + " & "+a); break}};void('')


Gives - 12, 14, 16, 18 & 20.


well done :-) None of my mates could do it.
User avatar
By Andy B
#339517
I love it when Console plays the flute.
User avatar
By Yudster
#339530
Thats like shooting fish in a barrel though.
User avatar
By Zoot
#339540
I love it when a plan comes together
User avatar
By Console
#339544
kendra k wrote:Let me write some JavaScript for it.

Code: Select alljavascript:eval(String.fromCharCode(66,97,114,114,101,108,61,123,34,79,117,99,104,33,34,58,34,34,44,34,83,116,111,112,33,34,58,34,34,44,34,42,67,111,117,103,104,42,34,58,34,34,44,34,33,34,58,34,34,125,59,115,104,111,111,116,61,97,108,101,114,116)); for(Viv in Barrel) shoot(Viv);
?
User avatar
By S4B
#339545
See I don't get how this javascript stuff works
I want to see Viv in the barrel being shot!
User avatar
By Zoot
#339549
haha, Mr Console sir, I salute you...
User avatar
By catherine
#339551
Console wrote:
kendra k wrote:Let me write some JavaScript for it.

Code: Select alljavascript:eval(String.fromCharCode(66,97,114,114,101,108,61,123,34,79,117,99,104,33,34,58,34,34,44,34,83,116,111,112,33,34,58,34,34,44,34,42,67,111,117,103,104,42,34,58,34,34,44,34,33,34,58,34,34,125,59,115,104,111,111,116,61,97,108,101,114,116)); for(Viv in Barrel) shoot(Viv);
?



Hahaha, that is cracking.