Given the following method: public int bbb(int x, int y) { intr; if (y ==0) retu
ID: 3608299 • Letter: G
Question
Given the following method: public int bbb(int x, int y) { intr; if (y ==0) return x; else { r= x % y; x= y; y= r; returnbbb(x,y); } } What will be output by thecall System.out.print(bbb(45, 30)); ? ____________________________________ Given the following method: public int bbb(int x, int y) { intr; if (y ==0) return x; intr; if (y ==0) return x; else { r= x % y; x= y; y= r; returnbbb(x,y); x= y; y= r; returnbbb(x,y); } } What will be output by thecall System.out.print(bbb(45, 30)); ? ____________________________________ ____________________________________Explanation / Answer
please rate - thanks 15 would be returned and printed
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.