0

// C program to swap two variables

#include <stdio.h>

// Driver code

int main()

{

int x, y;

printf(“Enter Value of x “);

scanf(“%d”, &x);

printf(“\nEnter Value of y “);

scanf(“%d”, &y);

int temp = x;

x = y;

y = temp;

printf(“\nAfter Swapping: x = %d, y = %d”,

x, y);

return 0;

}

Pavatharni . S Asked question June 6, 2023