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
2
Answer:
a is either7 or 9
Explanation:
as a is equals to 7 which statify the a== 7 condition
Answered by
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
Computer Science,
3 months ago
Physics,
3 months ago
Math,
7 months ago
Biology,
11 months ago
Social Sciences,
11 months ago