I only need b and c if done correctly I will up vote
Posted: Thu May 05, 2022 1:31 pm
I only need b and c if done correctly I will up vote
2. A C function is defined as follows: int f(int x, int y) { if (x == y) { return x; } else { if (x > y) { return f(x-y, y); } else { return f(x, y-x); a. [10 pts] What value is returned from £ (8,2)? b. [10 pts] What final value is returned from ≤ (5, 7)? c. [5 pts] Rename function £, based on the operation it performs.
2. A C function is defined as follows: int f(int x, int y) { if (x == y) { return x; } else { if (x > y) { return f(x-y, y); } else { return f(x, y-x); a. [10 pts] What value is returned from £ (8,2)? b. [10 pts] What final value is returned from ≤ (5, 7)? c. [5 pts] Rename function £, based on the operation it performs.