Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,848 members, 7,810,267 topics. Date: Saturday, 27 April 2024 at 03:49 AM

Can You Solve This Tricky Question? - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Can You Solve This Tricky Question? (1778 Views)

Can You Solve PHP Problems? Let's Find Out.. / Number Generator Challenge : Can You Solve This? / Can You Solve This? (2) (3) (4)

(1) (Reply) (Go Down)

Can You Solve This Tricky Question? by Lilprincey(m): 5:11pm On Jul 09, 2016
Where ar d mathematicians? ? Here is a
brain teaser....

A house wife forgot her bank account *PIN
CODE * which is five digits number, but
luckily she remember some hints on how to
recall this *PIN * Here ar some of the clues
(1) the first digit is a square of d 2nd digit

(2) the sum of the 2nd & 3rd digit is 10

(3) the 4th digit is equal to the 2nd digit plus 1

(4) the 3rd digit plus the 5th digit makes 14

(5) the sum of all the digit is 30......Then what is
the *PIN CODE *..........?

1 Like

Re: Can You Solve This Tricky Question? by badthinds: 5:18pm On Jul 09, 2016
Here is the answer... you know, posting this on programming section was the worst you can do... programmers like us are very intelligent when it comes to something like this.

SOLUTI0N

I'll just use 5 variables:
a, b, c, d, e

a = b^2
b + c = 10
d = b+1
c + e = 14
a+b+c+d+e = 30
Re: Can You Solve This Tricky Question? by asfrank(m): 5:25pm On Jul 09, 2016
D pin code is 93747.. not though as I anticipated.
Re: Can You Solve This Tricky Question? by Lilprincey(m): 6:59pm On Jul 09, 2016
badthinds:
Here is the answer... you know, posting this on programming section was the worst you can do... programmers like us are very intelligent when it comes to something like this.

SOLUTI0N

I'll just use 5 variables:
a, b, c, d, e

a = b^2
b + c = 10
d = b+1
c + e = 14
a+b+c+d+e = 30
What's the 5 digit pin?
Re: Can You Solve This Tricky Question? by Lilprincey(m): 7:00pm On Jul 09, 2016
asfrank:
D pin code is 93747.. not though as I anticipated.
How? Can u give us a break down?
Re: Can You Solve This Tricky Question? by flexispy: 7:18pm On Jul 09, 2016
Used A,B,C,D,E as the variables. As B was everywhere so I solved for it. Got B = 3. And from there easy. A,B,C,D,E are 9,3,7,4,7 respectively.

1 Like

Re: Can You Solve This Tricky Question? by DaViNcI16(m): 7:23pm On Jul 09, 2016
eehhhm,
after 25mins of strategic thinking and reasoning,
after series of calculation on a one full book sheet,


I got 9,3,6,4,8

pls comment if am correct before explanation
Re: Can You Solve This Tricky Question? by flexispy: 7:30pm On Jul 09, 2016
DaViNcI16:
eehhhm,
after 25mins of strategic thinking and reasoning,
after series of calculation on a one full book sheet,


I got 9,3,6,4,8

pls comment if am correct before explanation
But 6+3 is not 10 'B+C = 10' from the hint
Re: Can You Solve This Tricky Question? by DaViNcI16(m): 7:54pm On Jul 09, 2016
itz 93747::i forgot that b + c =10

1 Like

Re: Can You Solve This Tricky Question? by Lilprincey(m): 10:19pm On Jul 09, 2016
93747 dats the code guys...you all are geniuses

1 Like

Re: Can You Solve This Tricky Question? by badthinds: 11:43pm On Jul 10, 2016
Lilprincey:

What's the 5 digit pin?
c + e = 14
;
therefore

e = 14 - c
Re: Can You Solve This Tricky Question? by Etogist: 10:44am On Jul 11, 2016
DaViNcI16:
itz 93747::i forgot that b + c =10

Can you solve this one?
In a detergent shop, one carton of omo contains 10 rolls and one roll contains 5 sachets. If the shop has 10 cartons of omo and a Customer purchased 3 cartons, 2rolls and 1sachet, how many will remain?
The answer will be 6 cartons , 6 rolls and 4 sachets. The questions now is, how did you arrive at the answer? show all working if possible drive a formula that can solve this problem.

1 Like

Re: Can You Solve This Tricky Question? by 4kings: 5:28pm On Feb 18, 2017
This python code solves the question:
for i in range(0,10):
for j in range(0,10):
for k in range(0,10):
for l in range(0,10):
for m in range(0,10):

a = i
b = j
c = k
d = l
e = m
if a == b**2 and b+c == 10 and d == b+1 and c+e == 14 and a+b+c+d+e==30:
print(a, b, c, d, e)

Cc: Lilprincey badthinds DaViNcI16

1 Like

Re: Can You Solve This Tricky Question? by jamb20s: 7:10pm On Feb 18, 2017
done

Re: Can You Solve This Tricky Question? by OTRebirth: 3:43am On Mar 04, 2017
jamb20s:
done
LMAO, Broz dey vex oh, eazi!

(1) (Reply)

READING SOURCE CODES - One Of The Best Developer Practice / Android App -video Converter For Android / Fake Exploits Site To Everyone Https://www.hack-exploits.com/

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 21
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.