/******************************************************************************
Welcome to blackNwhite
Question:- Write A C program to Swap the Values of Two Variables.
*******************************************************************************/
#include <stdio.h>
int main() {
int a, b, temp;
// Input values for variables a and b
printf("Enter value for a: ");
scanf("%d", &a);
printf("Enter value for b: ");
scanf("%d", &b);
printf("Before swapping: a = %d, b = %d\n", a, b);
// Swapping logic using a temporary variable
temp = a;
a = b;
b = temp;
printf("After swapping: a = %d, b = %d\n", a, b);
return 0;
}