It turns out that we have some code that doesn't do what we need it to. It also turns out that you have to fix this now. To get the correct result, you need to play around with parentheses: arrange them so that the desired number (382) appears on the screen.
Parenthetical brainteaser
- 6
Locked
Comments (57)
- Popular
- New
- Old
You must be signed in to leave a comment
Anonymous #11304245
4 March, 05:38
it's so boring about math
0
sugiharto Singodimejo
11 February, 23:54
(3 (5 7))
0
Michaela Obertova
5 October 2022, 08:33
Took me a while to resolve as I first tried just playing around, but while playing around I realized that you have to look into divisors and it was almost easy after that. Though the task could it make clearer that the two sets of parentheses are extra two to the System.out.println parentheses.
0
sachin
15 June 2021, 16:32
took a while to identify the logic.
Thanks for the hints given below.
0
Luke
5 April 2021, 08:57
I was looking for 2 opening and 2 closing parentheses. Never would have got it because the answer is different.
Maybe I interpreted it wrong.
+1
Sanika
3 January 2021, 05:39
Completed in first attempt! Took me about 5 mins to figure out the solution. Putting parenthesis was quite easy. More of a math puzzle than coding problem!
0
Java_Mooood
16 October 2020, 16:44
Hint = 2 * 191
+3
Alhoussein Camara
3 August 2021, 03:59
thanks for the hint
0
remote87
6 October 2020, 16:18
it took me 2 days of trying with no thinking, 2 days of not thinking at all about the problem and ... 10 minutes of thinking hard about the problem and couple of tests...It's really that important when you feel stuck to stop thinking about the problem for a while and when you come back with a fresh mind you can achieve everything!!! Pro Java Dev I will take you down!!!
0
Hammad
3 August 2020, 15:16
It took me 65 attempts to solve.
Hint: 3 parenthesis to be used in total including printing method's.
Hint: Num 2 in the beginning will multiply with rest of the numbers.
Best of luck!
+3
peter
27 July 2020, 13:20
it took me hours more than needed because i thouhgt that there should be 2 opening parenthesis at the beginning and 2 at the end however they mean that you should have 4 parenthesis in total without counting the parenthesis van the println(). good luck with solving it and make sure that you interpreted it the right way otherwise it wil take hours.
+2