Computers and Technology

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; } a. ans = 60, x = 50, y =100 b. ans = 60, x =0, y =50 c. ans = 45, x = 50, y = 0 d. ans = 45, x = 50, y = 50

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 08:00, Maxxboogie
Can someone work out the answer as it comes up in one of my computer science exams and i don't understand the cryptovariables
Answers: 1
image
Computers and Technology, 25.06.2019 07:10, izearaholland7308
When you “listen” to evaluate an online message, which question should you ask?
Answers: 1
image
Computers and Technology, 25.06.2019 08:10, SithLeo
The __ is the section of a cpu core that performs arthimetic involving integers and logical operations
Answers: 2
image
Computers and Technology, 25.06.2019 14:00, bdawg9716
Do the shape of a sign gives you a clue about the information contained on the sign
Answers: 1
Do you know the correct answer?
What will be the values of ans, x, and y after the following statements are executed? int ans = 35,...

Questions in other subjects:

Konu
Mathematics, 27.09.2020 08:01