Add two numbers without using sum operator
Using Dev C++
========================================================================
#include<iostream>
using namespace std;
main()
{
int res,num1,num2;
cout<<"Enter Two Numbers to add\n";
cin>>num1>>num2;
num2=-1*num2;
res=num1-num2;
cout<<res;
}
========================================================================
OutPut :
Check By: Abuzar
0 comments:
Post a Comment