Menu

C program for addition of two numbers without using addition operator


Addition.c

#include
int main(){
int a,b;
int sum;
printf("Enter any two integers: ");
scanf("%d%d",&a,&b);
//sum = a - (-b);

sum = a - ~b -1;
printf("Sum of two integers: %d",sum);
return 0;
}










Connection failed: SQLSTATE[28000] [1045] Access denied for user 'studentdb'@'localhost' (using password: YES)

Subscribe