#include<stdio.h>
void swap(); // Function Declaration
void main()
{
    printf("\n --- Swapping Program --- ");
    printf("\n     ~~~~~~~~ ~~~~~~~ ");
    swap(); // Function Calling
    printf("\n \t ~~~ ThanK YoU ~~~ ");
}
void swap() // Function Definition
{
    int x,y,z;
    printf("\n Enter a X Value : ");
    scanf("%d",&x);
    printf("%d",x);
    printf("\n Enter a Y Value : ");
    scanf("%d",&y);
    printf("%d",y);
    z=x+y;
    x=z-x;
    y=z-y;
    printf("\n X Value is : %d ",x);
    printf("\n Y Value is : %d ",y);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: