Program to enter an integer and print out its successor.

Program to enter an integer and print out its successor.
  #include <iostream>
using namespace std;
int main(){
       int a, b, c;
       cout << "Enter Number" << endl;
       cin >> a;
       cout << "Successor Number is"<< ++a << endl;


       system("pause");
       return 0;

}

Comments