BlueToadGaming BlueToadGaming
  • 06-12-2021
  • Computers and Technology
contestada

I need an If else statement that sorts three numbers from a file from least to greatest

Respuesta :

Talanat
Talanat Talanat
  • 06-12-2021
void sort3(int& a, int& b, int& c)
{
if (a > b)
{
std::swap(a, b);
}
if (b > c)
{
std::swap(b, c);
}
if (a > b)
{
std::swap(a, b);
}
}
Answer Link

Otras preguntas

What are all the ways you spend more money when you pay with a credit card?
when the central bank allows the purchase or sale of domestic currency to have an effect on the monetary base, it is called
which part of the Declartion of independence gives many different examples of the British governmanet's unfair treatment of the colonists? A. list of grievances
f(x)= 1/2 |x - 3| -2 on a graph
hello help me with my homework I have to make a Diversity of Life Demonstration Card for bacteria. The frist card has to have an explanation of the Prokaryote.
the process of evolutionary changes that result in formation of new species and groups of species is called
I need the second part
You please help me with the second part i need it to pass this by friday
examine the black power era and the methods used to accomplish a goal. through text analysis, in what ways was there a war against african-americans within the
What does atomic radius measure? Which of the following would have a larger radius: Cesium (#55), Lead (#82) or Radon (#86)? How did you figure that out?