Computers and Technology
Computers and Technology, 11.02.2020 19:45, gobbler80

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

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 03:30, juliannxkim
Which group on the home tab allows you to add shapes to a powerpoint slide?
Answers: 1
image
Computers and Technology, 22.06.2019 22:00, mrnotsosmart744
Discuss the ways in which electronic information associated with payments is addressed in terms of security. include encryption, secure sockets layers, and secure electronic transactions in your discussion. are there any other ways that consumers and businesses can keep their payment information secure in an electronic commerce environment? do you feel that your information is safe when conducting electronic business? why or why not?
Answers: 1
image
Computers and Technology, 22.06.2019 23:30, jhonpiper
For her science class, elaine is creating a presentation on weather in the united states. she wants to make the presentation beautiful and interesting by drawing simple cloud or wave shapes. which is the best way for elaine to draw these shapes?
Answers: 1
image
Computers and Technology, 23.06.2019 13:30, jhitotw
What is the primary difference between the header section of a document and the body? a. the body is displayed on the webpage and the header is not. b. the header is displayed on the webpage and the body is not. c. the tag for the body is self-closing, but the tags for the headers must be closed. d. the tag for the header is self closing, but the tag for the body must be closed.
Answers: 3
Do you know the correct answer?
What will be the values of ans, x, and y after the following statements are executed?

in...

Questions in other subjects:

Konu
Mathematics, 15.12.2021 06:20
Konu
Mathematics, 15.12.2021 06:20
Konu
English, 15.12.2021 06:20
Konu
Mathematics, 15.12.2021 06:20