Monday 11 November 2013

addition of two integers without using addition opertaor

#include<iostream.h>
#include<conio.h>
void main()
{
int a,b;
cout<<"enter any two integers";
cin>>a>>b;
a=-(~a);
b=(~b);
a=a-b-2;
cout<<a;
getch();
}

No comments:

Post a Comment