Posted by : thedev27 Friday, October 25, 2013



#include <stdio.h>

int main()
{
   int a, b;

   printf("Enter two integers to swap\n");
   scanf("%d%d", &a, &b);

   a = a + b;
   b = a - b;
   a = a - b;

   printf("a = %d\nb = %d\n",a,b);
   return 0;
}

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Powered by Blogger.

Popular Posts

Followers

Labels

- Copyright © 2013 infocentre -Windows Offer- Powered by Blogger - Designed by OfferWala -