“ans = 60, x = 0, y = 50”,”What will be the values of ans, x, and y after the following statements are executed?int ans = 35, x = 50

Average Rating
0 out of 5 stars. 0 votes.

“ans = 60, x = 0, y = 50”,”What will be the values of ans, x, and y after the following statements are executed?int ans = 35, x = 50

y = 50;if (x >= y) { ans = x +10;x-=y; }else { ans = y +10;y +=x; }”