0
What will the function Strange(20,5) will return?
int Strange(int x,int y) { if(x>=y) { x=x-y; return Strange(x,y); } else return x; }
1 Respuesta
+ 1
it is equivalent to x%y (as you are substracting y from x some n(x/y) number of times till x not become -ve), so it will return 20%5 which is 0