#include <iostream>
usingnamespace std;
int main()
{
int a, b, c;
cout << "enter"<<endl;
cin >> a >> b >> c;
cout << "ok";
int p = (a + b) - c;
int k = (c + b) - a;
int m = (a * 100) + (b * 10) + (c * 1);
int n = (c * 100) + (b * 10) + (a * 1);
if (p>k)
{
cout <<m<<n;
}
system("pause");
return 0;
}
...because it relies on some other external program named pause that isn't installed. :-)
1. Don't use system calls if at all possible
2. When asking for input, don't say "enter" unless you just want the user to hit enter a few times. Trying numbers was a random guess
3. Ask for the input that you do want. I'm not sure what I was inputting or why. I just knew if I typed numbers I could get to the next part by glancing at the source.
enter
4 3 2 1
sh: pause: command not found
ok432234