"Hi, Amigo. Here are a few tasks to help you practice displaying things on the screen:"
Practice displaying stuff
Comments (110)
- Popular
- New
- Old
You must be signed in to leave a comment
Anonymous #11047028
7 August, 11:18
wasn't so easy to understand the 4 parenthesis but when understand it's easy!
0
Anonymous #10912898
7 January, 15:14
括号脑筋急转弯答案:System.out.println(2 * (3+4 *( 5 + 6 * 7)));
想不到吧😂😂😂
+1
Figueroa Gabriel Hernan
21 September 2021, 21:54
El ejercicio Parenthetical brainteaser fue muy dificil pero lo puede hacer!! en un momento creí que no había forma de llegar a 382. Excelente ejercicio.
+1
Mike Bayley
20 July 2021, 19:18
I've just noticed something...when using IntelliJ normally, I see the output of running the program in the terminal below, but this does not happen when running the CodeGym exercises. It tells me if the program is correct or not, but I don't see the output?
0
Anonymous #10754849
28 July 2021, 13:40
That's why it's better to use intellij as you can see the result before verifying.
0
0wis
12 August 2021, 13:55
You can use the "run" button between "discuss" and "code analysis" in the browser to see the output without verfiying.
+1
Justin Smith
4 July 2021, 16:32
For the Parenthetical Brainteaser, I am not sure if it matters (I have yet to find the solution after several hours), but after googling something I was unsure about, there may be an important piece of information not listed in any of the lessons up to this point. Java will follow the order of operations in mathematical expressions.
In other words, if you have 2 + 4 * 7, Java will evaluate 4 * 7 first and arrive at an answer of 30, rather than 42. Parentheses aren't necessary if 30 is the desired result. So the solution to this may involve not needing to put parentheses around a multiplied part because it's automatically going to be done first.
I wish I had googled this first, because I've already spent the first 4 hours of this task assuming it was just strict left-to-right evaluation except for parentheses.
0
Anonymous #10752052
23 June 2021, 23:47
I like this!!
0
Arturo Vazquez
15 June 2021, 17:00
i do, the problem of Parenthetical brainteaser, yeah!
+1
acg.comured
14 June 2021, 11:20
OK
0
Khongpak Phupkdee
10 January 2021, 04:15
I used a lot of time for Parenthetical brainteaser but in the final, I won.😍
+2
rolls&&
14 December 2020, 05:01
I rated this app t5 starts in the beggining. ILL keep it cuz it helped me a lot by this few lessons that I learned so much.
0