- #include<iostream.h>
- #include<conio.h>
- void main(){
- clrscr();
- int a,b;
- int sum;
- cout<<"Enter any two integers:\n ";
- cout<<"Enter first integers= ";
- cin>>a;
- cout<<"Enter second integers= ";
- cin>>b;
- sum = a - (-b);
- //sum = a - ~b -1;
- cout<<"Sum of two integers:"<<sum;
- getch();
- }