Computer Science, asked by Amitzenny, 7 months ago

e) int a=20,b=34,c=90;
if(a%100==0)
{if((b/400==0)&&(c%4==0))
System.out.println(++a);
else
System.out.println(b++);}
else
System.out.println(--c);​

Answers

Answered by yesiamin6
0

Answer:

The output is --c=89

Explanation:

As the 20%100 is not equal to 0 it is equal to 20

So the compiler ignores the if conditions and move on to the else part

So the out put will be --c(pre decrement) 90 will become 89

HOPE IT HELPS YOU

DO FOLLOW FOR MORE ANSWERS/PROGRAMS

MARK AS BRAINLIEST

Similar questions