Hi, when i run my prog. from exe file, it does not stay on screen. I tried system (pause) fun. but code block show an error that " system was not declared in this scope. how to solve it?
#include <iostream>
usingnamespace std;
int main()
{
int a, b;
cout << "Please Enter First Digit: ";
cin >> a;
cout << "Please Enter Second Digit: ";
cin >> b;
cout << endl;
if (a > b)
{
cout << " First Digit is Greater Than Second Digit: \n " << a << " > " << b << endl;
}
elseif (a < b)
{
cout << " First Digit is Smaller Than Second Digit: \n " << a << " < " << b << endl;
}
else
{
cout << " First Digit is Equal to Second Digit: \n " << a << " = " << b << endl;
}
cout << " Have a Nice Day Dear." << endl;
system("pause");
}