Friday, March 9, 2012

Program to Interchange the value.

//Program to Interchange the value.
#include<stdio.h>
#include<conio.h>
main()
{ int a,b,temp;
 printf("Enter the value of a and b -");
 scanf("%d%d",&a,&b);
 temp=a;
 a=b;
 b=temp;
 printf("The changed value of a and b -%d & %d",a,b);
 getch();
}


No comments:

Post a Comment