#include <iostream.h>
#include <conio.h>
int main ()
{
clrscr();
int n;
cout <<"Enter Your Number : ";
cin >> n;
cout <<endl;
if (n%2==0)
{
n++; //n=n+1
cout << n <<" Is Next Odd Number " <<endl;
}
else
{
n++; //n=n+1
cout << n <<" Is Next Even Number " <<endl;
}
getch();
return 0;
}
#include <conio.h>
int main ()
{
clrscr();
int n;
cout <<"Enter Your Number : ";
cin >> n;
cout <<endl;
if (n%2==0)
{
n++; //n=n+1
cout << n <<" Is Next Odd Number " <<endl;
}
else
{
n++; //n=n+1
cout << n <<" Is Next Even Number " <<endl;
}
getch();
return 0;
}