Thursday 8 January 2015

Adding Two Numbrs Without using '+' operator

 int main()
 {
 int a,b; 
 int sum; 
 printf("Enter any 2 integers: ");
 scanf("%d%d",&a,&b); 
 sum = a - ~b -1;
 printf("Sum of two integers:%d",sum); 
getch();
 }

No comments: