#include<conio.h>
#include<stdio.h>
main()
{
int a,b,c;
clrscr();
printf("Enter 2 No's: ");
scanf("%d%d",&a,&b);
printf("\nBefour Swaping");
printf("\na = %d",a);
printf("\nb = %d",b);
c=a;
a=b;
b=c;
printf("\nAfter Swaping");
printf("\na = %d",a);
printf("\nb = %d",b);
getch();
}
No comments:
Post a Comment