subject
Mathematics, 14.07.2020 01:01 alextoro

I have two variables, $x$ and $y$, and I want to swap their values. (For example, if $x$ has value 5 and $y$ has value "banana", then after the swap I want $x$ to have value "banana" and $y$ to have value 5.) Explain why the code x = y y = x doesn't work, and figure out what we need to do to swap the values of $x$ and $y$.

ansver
Answers: 3

Another question on Mathematics

question
Mathematics, 20.06.2019 18:04
Hannah works at the mall selling book bags. she sold 35 book bags in 5 hours. how many book bags did she sell per hour?
Answers: 1
question
Mathematics, 21.06.2019 19:00
Twenty points. suppose that one doll house uses the 1 inch scale, meaning that 1 inch on the doll house corresponds to 1/2 foot for life-sized objects. if the doll house is 108 inches wide, what is the width of the full-sized house that it's modeled after? in inches and feet
Answers: 2
question
Mathematics, 21.06.2019 20:00
If private savings 'v' = 0.75s and total savings 's' equals $4.20 billion, solve for public and private savings.
Answers: 2
question
Mathematics, 21.06.2019 21:00
Campus rentals rents 2 and 3 bedrooms apartments for $700 ans $900 a month respectively. last month they had six vacant apartments and reported $4600 in lost rent. how many of each type of apartment were vacant?
Answers: 1
You know the right answer?
I have two variables, $x$ and $y$, and I want to swap their values. (For example, if $x$ has value 5...
Questions
question
Mathematics, 15.06.2021 18:10
question
Mathematics, 15.06.2021 18:10
question
Chemistry, 15.06.2021 18:10
question
Mathematics, 15.06.2021 18:10
question
Mathematics, 15.06.2021 18:10
Questions on the website: 13722363