#include <iostream>
int main()
{
int a, b, c;
std::cout << "please enter 3 integers: ";
std::cin>> a >> b >> c;
if(a < b && a < c)
{
if(b < c)
{
std::cout << a << b << c;
}
else
{
std::cout << a << c << b;
}
}
elseif (b < c)
{
std::cout << b << c << a;
}
else
{
std::cout << c << b <<a;
}
return 0;
}
I use braces a lot because it makes it easier to see the relationship with if/else statements.