Why "cout << x" is there ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why "cout << x" is there ?

Wrong java challenge? https://code.sololearn.com/c3xwGea0gK68/?ref=app

8th Jul 2017, 9:50 AM
Oleksandr
Oleksandr - avatar
3 Answers
+ 2
then it's wrong we can't use c++ function in Java lol
8th Jul 2017, 10:06 AM
vaibhav
+ 1
that's wrong it is there to tell you that instead of cout<<x you use system.out.printn(x) which is commented out there
8th Jul 2017, 9:55 AM
vaibhav
+ 1
well I believe there is so many wrong answers in challenges and so many wrong written questions, including this cout<<x
8th Jul 2017, 10:12 AM
Luka Merdović
Luka Merdović - avatar