Computer Science, asked by sanadilamo, 2 months ago

class HackerEarth{
public static void main(String[] args)
{
int count 0;
int a
3;
while(count++ < 3)
{
int b (1 + 2 * count) % 3;
switch(b)
{
default:
case 0: a -= 1; break;
case 1: a += 5;
}
}
System.out.println(a);
}
}​

Answers

Answered by hritiknigaa
1

Answer:

6

the output of the program will be 6

Similar questions