Friday, 2 November 2012

Next Number


//Enter A number and check what will be the next number....
#include <iostream>
using namespace std;
int main ()
{
int n1,n2;
cout << "Enter a Number: ";
cin >> n1;
n2=n1+1;
cout << "The next number is = "<< n2<<endl;
return 0;
}

No comments:

Post a Comment