C Program to Swap Two Numbers


C Program to Swap Two Numbers

#include<stdio.h>
  void main()
  {
     int a,b;
     
     printf("enter two no : ");
     scanf(" %d%d",&a,&b);
     
     a=a+b;
     b=a-b;
     a=a-b;
     
     printf(" your swap no in a=%d \t b=%d \n",a,b); 
  
  }

out put :-


No comments:

hia friends you are seeing my blogger thank's. Powered by Blogger.