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 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
3. when you right-click a linked spreadsheet object, what commands do you choose to activate the excel features? a. linked worksheet object > edit b. edit data > edit data c. linked spreadsheet > edit d. object > edit data
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
question
Computers and Technology, 24.06.2019 14:00
Which computer tools allow you to communicate with coworkers, family,and friends
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, 03.09.2020 03:01
question
Mathematics, 03.09.2020 03:01
Questions on the website: 13722363