
Patrick B. answered 09/15/20
Tutor
4.7
(31)
Math and computer tutor/teacher
Call it...
What number is being passed?
Ex.
MyFunction (0);
Then n=0, so x=0 and y=1
Rreturns 1
Umesh K.
asked 09/15/20int myFunction(int n) {
int x = n * 2;
int y = (x + 1) % 3;
return y - x;
}
Patrick B. answered 09/15/20
Math and computer tutor/teacher
Call it...
What number is being passed?
Ex.
MyFunction (0);
Then n=0, so x=0 and y=1
Rreturns 1
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.