C++ Program to add 2 numbers and tell if it's odd/even.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a,b;
cout<<"Enter first number: ";
cin>>a;
cout<<"Enter second number: ";
cin>>b;
a=a+b;
cout<<"The sum is: "<<a<<endl;
if(a%2==0)
cout<<"The sum is even";
else
cout<<"The sum is odd";
getch();
}