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

Who is Jacob Riis and why is he famous?
In South America, some farmers build farms on hilltops because of the mountainous landscape. Which of the Six Essential Elements of Geography does this most rep
A TV at an electronics store originally costs $600, but it is on sale for 30% off. If a customer buying the TV has a coupon for $35.00 off of any purchase, what
A pool is being drained at a constant rate. The amount of water is a function of the number of minutes the pool has been draining, as shown in the table. Write
What is the meaning of accounting.
What precent of 14 is 4.34?
how do you write the cos 18° in terms of the sine.
There are 16 girls and 20 boys in the school band what is the ratio in the simplest form of girls to boys ?
how do you write the cos 18° in terms of the sine.
Chin bought 12 pounds of apples for $6 at this rate how much will is cost to buy 3 pounds of apples