/*

Write a program to subtract two numbers without using subtraction operator

*/

#include<stdio.h>

int main(){

int a,b;

int sum;

printf("Enter any two integers: ");

scanf("%d%d",&a,&b);

sum = a + ~b + 1;

printf("Difference of two integers: %d",sum);

return 0;

}

Write a program to subtract two numbers without using subtraction operator

*/

#include<stdio.h>

int main(){

int a,b;

int sum;

printf("Enter any two integers: ");

scanf("%d%d",&a,&b);

sum = a + ~b + 1;

printf("Difference of two integers: %d",sum);

return 0;

}

## 0 Comments