Computer Science, asked by gammermanav, 7 months ago

write the ouyput of the following program
int a=7;
if(a==7||a==9)
System.out.println(“a is either7 or 9”);
else
System.out.println(“a is not 7 or 9 ”);

Answers

Answered by visheshsaxena49
2

Answer:

a is either7 or 9

Explanation:

as a is equals to 7 which statify the a== 7 condition

Answered by Alina07
0

Answer:

a is either 7 or 9

Explanation:

because here "or operator" is used so if a single condition is true it will print the first statement

Similar questions