C program to print the swapping of two numbers using the third variable

C program to print the swapping of two numbers using the third variable. This program will help you to find how the number changes in c programming to interchange the number which are initialized before the program execute and how it prints the another value in c program

#include<stdio.h>
int main() 
{
int a, b, temp;
printf("Enter a number ");
scanf("%d", &a);
printf("Enter b number ");
scanf("%d", &b);
temp = a;
a = b;
b = temp;
printf("After swapping");
printf("\na = %d\n", a);
printf("b = %d", b);
return 0;
}
Output:
Enter a number 45 
Enter b number 3 
After swapping 
a = 3 
b = 45