What will be the output of the following program segment?
for(int a = 0; a < 10; a++)
{
if(a== 3 || a = = 5)
System.out.println(a);
}
Answers
Answered by
0
Output:
3
5
Explanation:
if statement prints a when it is either 3 or 5.
Similar questions