subject

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 + 20;

x = x + y;

}

else

{

ans = y + 10;

y= y + x;

}

a. ans = 60, x = 50, y =100
b. ans = 70, x =100, y =50
c. ans = 45, x = 50, y = 0
d. ans = 45, x = 50, y = 50

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:10
10. when you create a pivottable, you need to specify where to find the data for the pivottable. is it true
Answers: 2
question
Computers and Technology, 23.06.2019 01:00
Complete the sentence about a presentation delivery method
Answers: 2
question
Computers and Technology, 23.06.2019 11:00
What is the name of the sound effect that danny hears
Answers: 1
question
Computers and Technology, 24.06.2019 09:00
Why might you chose to crest a function resume
Answers: 1
You know the right answer?
What will be the values of ans, x, and y after the following statements are executed?

in...
Questions
question
Mathematics, 13.10.2020 06:01
question
Health, 13.10.2020 06:01
question
Mathematics, 13.10.2020 06:01
question
Mathematics, 13.10.2020 06:01
Questions on the website: 13722361