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

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
Write a function that draws a pool ball. this function should take as parameters, the color, the number that should go on the pool ball, and the location of the center of the pool ball. the radius of the pool balls should be pool_ball_radius, and the font of the number should be pool_ball_font. the text of the pool ball font should be white. drawpoolball(color.orange, 5, 100, 100); drawpoolball(color.green, 6, 50, 200); drawpoolball(color.red, 3, 150, 350); drawpoolball(color.blue, 2, 250, 140); to center the numbers on the pool ball, you should use the getwidth() and getheight() methods. you are allowed to call these methods on your text object, such as txt.
Answers: 3
question
Computers and Technology, 23.06.2019 01:00
Complete the sentence about a presentation delivery method
Answers: 2
question
Computers and Technology, 24.06.2019 12:00
What is a sketch or blueprint of a web page that shows the structure (but not the detailed design) of basic page elements such as the logo, navigation, content, and footer?
Answers: 3
question
Computers and Technology, 24.06.2019 13:30
Which of the following is not a “fatal four” event?
Answers: 2
You know the right answer?
What will be the values of ans, x, and y after the following statements are executed? int ans = 35,...
Questions
question
Mathematics, 11.10.2019 10:50
question
Mathematics, 11.10.2019 10:50
question
Mathematics, 11.10.2019 10:50
question
English, 11.10.2019 10:50
Questions on the website: 13722363