C Program Swap two numbers using Temporary Variable

void main()
    int first, second, temp;
    printf("Enter First Number: ");
    printf("Enter Second Number: ");

    // first Value is assigned to temp
    temp = first;

    // second Value is assigned to first
    first = second;

    // Value of temp (initial value of first) is assigned to second
    second = temp;

    printf("\nAfter swapping First Number: %d\n",first);
    printf("After swapping Second Number: %d",second);
    return 0;


Enter First Number: 5
Enter Second Number: 7

After swapping First Number: 7
After swapping Second Number: 5