#include
using namespace std;
int main()
{
int num;
cin>>num;
cout<<"The next number for the number " << num << " is " << num + 1 <<"!"<<endl;
cout<<"The previous number for the number " << num << " is " << num - 1 <<"!"<<endl;
cin.get();
return 0;
} Может это?
#include
using namespace std;
int main()
{
int num;
cin>>num;
cout<<"The next number for the number " << num << " is " << num + 1 <<"!"<<endl;
cout<<"The previous number for the number " << num << " is " << num - 1 <<"!"<<endl;
cin.get();
return 0;
} Может это?