Aubee4483 Aubee4483
  • 09-09-2017
  • Computers and Technology
contestada

Given two double variables, best value and second best value, write some code that swaps their values. declare any additional variables as necessary.

Respuesta :

kaevras
kaevras kaevras
  • 11-09-2017
As I say to any people requesting programming help on these forums, I always suggest that you include what language you're using in the question, otherwise you may not get the answer you're looking for.

Here's an example in C++, and note that I'm only showing the function, and not the entire code:


static void swap(double& one, double& two)
{
    double temp = one;
    one = two;
    two = temp;
}
Answer Link

Otras preguntas

The sum of fifteen and six times a number t is eighty-one. What is the number?
Mark had been a resident of Larchmont for 17 years, and local folks thought of him as a solid citizen. "In this sentence, the word solid probably means A older
what is the answer to 5 divided by 5.8492
Why did Hooke call the structures he saw in the cork CELLULAE (small rooms)?
Your Language Skills Julia ______ in the garden. is working working is work are working
which american state are the nearest to bahamas
Emily's vacuum has a power rating of 200w if the vacuum cleaner does 360000j of work how long did Emily spend vacuuming
5+3=4d please help me
What's the adjectives in that music class was divided into four groups.
List three major differences between the living room of the 1930s and the living room of the 1970s.