#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a, b, temp;
printf("Enter value of A and B : \n");
printf("A = ");
scanf("%d",&a);
printf("B = ");
scanf("%d",&b);
temp=a;
a=b;
b=temp;
printf("Number interchanged successfully..!!\n");
printf("A = %d\nB = %d",a,b);
getch();
}
No comments: