阅读下面的程序,写出程序的输出结果:
#include
using namespace std;
int main( )
{
int a, b, c;
a = 10;
b = 20;
c = 30;
if (a > b)
a = b;
b = c;
c = a;
cout << a << "," << b << "," << c << endl;
return 0;
}
阅读下面的程序,写出程序的输出结果:
#include
using namespace std;
int main( )
{
int a, b, c;
a = 10;
b = 20;
c = 30;
if (a > b)
a = b;
b = c;
c = a;
cout << a << "," << b << "," << c << endl;
return 0;
}