Use namespace std
int main()
{
int a,b,c,temp
Cout & lt& lt "Please enter three integers:";
CIN & gt; & gta & gt& gtb & gt& gtc;
If (a>b)
{
temp = a;
a = b;
B = temperature;
}
If (a>c)
{
temp = a;
a = c;
C = temperature;
}
If (b>c)
{
temp = b;
b = c;
C = temperature;
}
Cout & lt& lt "Three integers from small to large:"
Returns 0;
}
It has been compiled and run in Visual C++6.0, and it is correct to use the algorithm thought in the tips you gave.