#include <stdio.h>
int newX(int x, int y) {
return y;
}
int newY(int x, int y) {
return x;
}
int main() {
int a = 2;
int b = 9;
printf("Before swapping:\n");
printf("The value of a is: %d\n", a);
printf("The value of b is: %d\n", b);
a = newX(a, b);
b = newY(a, b);
printf("After swapping:\n");
printf("The value of a is: %d\n", a);
printf("The value of b is: %d\n", b);
return 0;
}