Computer Science, asked by jaishreeanbu2007, 3 months ago

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 dattarajshinde44
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