- 2

how do i pass the last level of stage 2 ? its quite hard.

i ve been reying a lot to beat this lvl but i just dont understand it

28th Feb 2017, 6:52 PM
Zakaria Bordier Souaken
Zakaria Bordier Souaken - avatar
3 Respuestas
+ 4
Do you mean one of the quizzes in the Java course here at SoloLearn? Could you give us a hint and post the topic?
28th Feb 2017, 7:37 PM
Tashi N
Tashi N - avatar
+ 4
I found another post of you: https://www.sololearn.com/Discuss/21404/?ref=app So I think you have problems to understand boolean logic? I try to explain with examples, where two expressions are checked: AND && The condition is true, if both checked expressions are true, e.g. if ( (1>0) && (5 <10) ) true AND true --> both true, condition is true if ( (1<0) && (5 <10) ) false AND true --> only one true, condition is false true AND true results true false AND true results false false AND false results false OR || The condition is true, if one of the checked expressions is true, e.g. if ( (1>0) || (5 > 10) ) true AND false --> one true, condition is true true OR true results true false OR true results true false OR false results false
28th Feb 2017, 7:52 PM
Tashi N
Tashi N - avatar
+ 4
Maybe this code will help you, too... https://code.sololearn.com/cnMMk8BODddd/?ref=app
28th Feb 2017, 7:53 PM
Tashi N
Tashi N - avatar