#include
#include
void value(int);
void main()
{
clrscr();
int x;
cout << "Enter an integer : ";
cin>>x;
cout << "The successor of " << x << " is ";
value(x);
getch();
}
void value(int x)
{
x++;
cout << x << "." << endl;
}
Sunday, September 5, 2010
Program to enter an integer and print out its successor
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment