C Program Swap Two Numbers Without Third Variable
C Program Swap Two Numbers Without #include <stdio.h> int main() { int n1,n2; printf(“Enter two numbers to swap values without using third variable\n”); scanf(“%d%d”, &n1, &n2); printf(“Before swapping: n1=%d and n2=%d”, n1,n2); n1 = n1 + n2; n2 = n1 – n2; n1 = n1 – n2; printf(“\nAfter swapping: n1=%d and n2=%d”, n1,n2); return 0;… Read More »