public class ElseIfBranchTest { public int calc(int a, int b){ if(a 15) a -= 10; }else if(a==b){ a += b; } else if(a>b){ a -= b; } if(a > 10 && b < 20){ a += 13; if(a > 25) a -= 5; } return a; } }