Considerând subprogramul f, definit alaturat, stabiliţi ce valoare are expresia f(10,30)?
int f(int x, int y)
{ if (x>y) return 0;
else if (x%2==0) return 1+f(x+1,y);
else return f(x+1,y);
}
b. 11
c.10
d.15
a. 2