+ 7
Challenge : can u solve this , I don't think so.. Well,give it a try.
So ,here we go - you have 4 numbers (1,1,5,8). what u need to do is just get a answer 10. u can use addition,substraction,division,multiplication, parenthese.(+,-,*,/,() ) But ur not allowed to use exponents i.e. 8+1+1^5 this is not valid . And yeah one more thing u cannot repeate the numbers. This question is a interview question ,simply mathematics no,language is in consideration. Good luck. Try your best Good Luck.
17 Réponses
+ 20
1)8+5/(1+1) //if java
//bcz 5/2 in java is 2 only 😂
2)8/(1-1/5) //if math
//u have a 5 so use it ...biggest hint 1-1/5 = 8/10 & 8 /(8/10) will give 10
3)8.0/(1.0-(double)1/5) //if java
+ 2
well thats wrong ,u cannot reapete the numbers
+ 1
what is the answer for that Q's ?
+ 1
well, as the answer is said let me explain it .briefly.
8/(1-1/5)
First solve the parentheses that is 1-1/5 .
take the L. C. M u will get 5 and it's like (5-1)/5,then u will get 4/5..
Now let's solve it with 8..
8/4/5 let's make it simple 8*5/4 You will get 40/4 that is 10,, it's so simple and interesting.
Hope u understood.
+ 1
Q's looks simple but to find the ans need to think ...
0
Thanks to try but this is not the answer
0
can u just explain me ur answer
0
ohh i am sorry but this is an interview question and simply mathematics , not a java question
0
Basically , asked in google interviews
0
okay take ur time ,but dont search on google, please , henceforth, this question would be a total waste
0
just try it yourself first
0
@gaurav Agrawal did u tried your own or searched it
0
@jeevan you are absolutely right
0
why
0
😂
0
@ gaurav thanks