iForeRunner
 
   
 
  c  
   
   
   
 
  PROGRAM FOR SWAP  
 
 



Program to interchange the 2 values




‡include<stdio.h>
main() {
int a,b,c; clrscr(); printf("\nEnter 2 values "); scanf("%d%d",&a,&b); /*c=a; a=b; b=c;*/ a=a+b; b=a-b; a=a-b; printf("\n a= %d b=%d",a,b); getch(); }

Please send comments to vgdarur.javafive@blogger.com