article ARTICLE
article3 sec read

Spot The BUG

Can you guess the error in this Java code?

6
  •  Inspiring
  • comment_icon  Comment

Sireesha 25 Jan, 2022

here initialization of x variable and the for loop are erroneous

CYBER 13 Jan, 2022

heres my view.

Varun 26 Dec, 2021

biggest error: this is python code not Java

Varun 26 Dec, 2021

if x=y instead of if x==y:

Kashmila 27 Nov, 2021

Semicolon instead of colon

Durga 20 Nov, 2021

print("They are unequal")

Durga 20 Nov, 2021

...
for y in range(0,10):
if x==y:
....

Deeshant 9 Nov, 2021

for y in range(0,10):

pankajbasera 5 Nov, 2021

for y in range