Vision and dreams are the blueprints of soul and achievements.
-Mohammed Ahmed F

Simple program to swap two numbers

int main()
    int a,b,temp;
    printf("Enter any two integers: ");
    printf("Before swapping: a = %d, b=%d",a,b);

    temp = a;
    a = b;
    b = temp;
    printf("\nAfter swapping: a = %d, b=%d",a,b);

    return 0;

Share this

Related Posts

Dear User,

Thank you for your comment. Hope you like this blog. Kindly share us on Social Media so others can be updated.

-Chief Administrative Officer.