# Only 20 will do

• 1
• Locked
Many programmers are just crazy about brainteasers: Rubik's cubes, "use two matchsticks to get 100", the Tower of Hanoi, and others. Their brains are wired like that. Let's practice solving some brainteasers in programs. In this case, arrange the plus and minus signs so that the variable result is equal to 20.
You can't complete this task, because you're not signed in.
Jean Ann Harrison
Level 2 , Palm Bay, United States
12 February 2021, 22:44
This one was fun!
Java_Mooood
Level 3 , San Antonio, United States
7 October 2020, 13:45
Basic math
7 March 2020, 01:48
s
Level 2
7 December 2019, 14:40
This one caused me to mutter quite a bit on completion.
Laura Alvarez
Level 4 , Cota, Colombia
5 August 2019, 22:14
Do I need to start a variable declaration with “public static…” when I am declaring it outside the main method? What is the difference?
Vani
Level 1 , Delhi, India
7 April 2019, 14:57
After executing the program and getting the required output also, why is it showing the status of the task as "In Progress" ? Appreciate inputs on this. Thanks in advance!
Roman
Level 41
8 April 2019, 06:21
After successfully verifying the program status will be completed.
JACOB ANDERSEN
Level 10 , Wilmington, United States
24 March 2019, 17:57
you know that the final result must be 20. The last number to be added is d, which is 27. This means, that you somehow have to make the sum of a, b and c equal to something that will take 27 DOWN to 20.
Thomas
Level 11 , Scottsdale, United States
16 September 2021, 01:56
THIS ))
Pallavi Sharma
Level 2 , Mumbai, india
22 February 2019, 14:59
i cannot understand why + or - will precede variables, its has yet not been introduced
Jose Luis
Level 1 , North Ridgeville, US
14 May 2019, 14:47
True. This was throwing me off.
Scottie Rohl
Level 3 , Crystal River, United States
17 May 2019, 13:23
it wasn't but i think the point is to figure it out a little on your own to make your brain think.
vikas gupta
Level 3 , Bareilly, India
12 October 2018, 21:16
/* The comment was deleted */
Roman
Level 41
16 October 2018, 05:40
Posting the solution in the comments is prohibited.