#include<stdio.h>
#include<conio.h>
{
clrscr();
int a=10,b=5;
printf("\nBefore swapping a=%d",a);
printf("\t b=%d",b);
int temp=a;
a=b;
b=temp;
printf("\nAfter swapping a=%d",a);
printf("\t b=%d",b);
getch();
}
#include<conio.h>
{
clrscr();
int a=10,b=5;
printf("\nBefore swapping a=%d",a);
printf("\t b=%d",b);
int temp=a;
a=b;
b=temp;
printf("\nAfter swapping a=%d",a);
printf("\t b=%d",b);
getch();
}
Comments
Post a Comment