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, 21.06.2019 16:30
Amuffin recipe, which yields 12 muffins, calls for cup of milk for every 1 cups of flour. the same recipe calls for cup of coconut for every cup of chopped apple. to yield a batch of 30 muffins, how much flour will be needed in the mix?
Answers: 1
question
Mathematics, 21.06.2019 21:00
Awater tank holds 18000 gallons. how long will it take for the water level to reach 6000 gallons if the water is used at anaverage rate of 450 gallons per day
Answers: 1
question
Mathematics, 21.06.2019 23:00
Apackage of orgainc strwberries costs $1.50 while there in season and $2.25 when not in season what the percent increase
Answers: 1
question
Mathematics, 22.06.2019 00:00
Meg constructed triangle poq and then used a compass and straightedge to accurately construct line segment os, as shown in the figure below, which could be the measures of angles pos and angle poq?
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
Health, 23.06.2021 15:10
question
Biology, 23.06.2021 15:10
question
World Languages, 23.06.2021 15:10
Questions on the website: 13722363