- 1

What is the output of this code? int x=3,y=3; do { X-=3; y=y-x; } while(false); System.out.print(y-x)

9th Jan 2020, 8:54 AM
Nihaal Khan
Nihaal Khan - avatar
2 Réponses
+ 5
Nihaal Khan Inside do x=3-3=0 y=3-0=3 Then comes out of while because"false" y-x = 3
9th Jan 2020, 9:08 AM
Ozair Khan
Ozair Khan - avatar
0
Yeah its true but when i face common round challenge it produced wrng when i put 3 there 😒
9th Jan 2020, 10:20 AM
Nihaal Khan
Nihaal Khan - avatar