No comments needed

  • 4
  • Locked
Not all comments are equally helpful! Sometimes they appear in the code when a programmer isn't sure about some line and wants to return to it later. For example, in this task we have one unnecessary comment that is making the program work incorrectly. Uncomment one line to get the correct result!
You can't complete this task, because you're not signed in.
Comments (121)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Ahu Level 4, Slough, United Kingdom
5 October 2020, 12:54
I just don't get it, there are 2 comments anyway, I tried the first, it didn't work then the second one, it worked, I have the solution, but I don't how this works. Just waste of my time, as it is not explained how that worked.
18 October 2020, 19:57
You have to think the code is runing and getting processed line by line, from the top to the bottom one line at the time. If you do not uncomment any line, what happens? those commented lines are ignored, and the result is 2 and then 12 printed on the screen. So you have to, lets say, unblock or uncomment some code to get processed too, adding some extra, lets say, mathematic transformation to the original code which will twerk the result now printing firstly 12 and then 2.
JuiceBox Level 0
15 December 2020, 19:21
Or just remove the lower pair of slashes, either way, it workes.
Lorraine Brown Level 2, Oakland, United States
30 September 2020, 16:34
Is there a way to reset this question to the original state? For some reason, I am not getting this one. I got to see the original versus the hint. It probably just me.
Dilshodbek Fayzullayev Level 1, Frankfurt am Main, Germany
29 September 2020, 10:14
Perfect
Brady Raphael Level 1, Albert Lea, United States
26 September 2020, 16:35
LMAO how is this hard?
Mamady Level 1, Arlington, United States
23 September 2020, 01:01
done
hendry xu Level 0
23 July 2020, 17:20
how is this hard?
emmiloo Level 1, Toronto, Canada
24 July 2020, 01:28
stfu hendry you're just a hater
Bartłomiej Błaszczyk Level 0, Katowice
21 August 2020, 20:52
xD
Laura Level 7, Lübeck, Deutschland
20 July 2020, 11:17
Lol, I found it harder than it looks like
11 July 2020, 06:49
Nice, that's the power of OOP.
Bartłomiej Błaszczyk Level 0, Katowice
21 August 2020, 20:52
no it isn't xD
null Level 1, Bangalore, India
26 June 2020, 15:34
NIce
FormulaEagle Level 6, Rockville, United States
24 June 2020, 20:41
I honestly didn't think this one was so hard