find the problem in the following code
int i=5,j=10;
if((i<j)||(i=10))
system.out.println("OK");
system.out.println("NOT OK");
Answers
Answered by
0
Answer:
Output : NOT OK
Explanation:
In The Program , i = 5 & j = 10;
so , if (i<j) - you have closed the bracket , it should be like - if (i<j || i = 10)
Similar questions