Computer Science, asked by rashmidandinadurgi, 8 months ago

class Main
{
public static void main(String args[])
{
int x, y = 1;
x = 10;
if (x != 10 && x/ 0 == 0)
System.out.println(y);
else
System.out.println(++y);
}​

Answers

Answered by Oreki
0

Output:

2

Explanation:

As, x != 10 && x / 0 == 0, returns false

++y ==> 2

Similar questions