Question: 2 Increment & Decrement Find The Bugs! The following code is intended to increment / decrement A and B until A is equal to X
2. Increment &Decrement -Find The Bugs The following code is intended to increment/decrement A and B until A is equal to X and B is equal to Y. Find the bugs! publicstaticvoidMakeTheNumbers Match(int a, int b, int x, int y) while (ax && b!-y) if (a>x) att else if (b> y) else
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
