Hello
everybody. I'm back after a long time. I was busy with my works and studies.
Today I came with some code of C program.
Now
I'm going to give you the code of Swapping in C program. The code is given
bellow.
#include<stdio.h>
#include<conio.h>
void
main()
{
int
a,b,t;
clrscr();
printf("Enter
the value of a:");
scanf("%d",&a);
printf("Enter
the value of b:");
scanf("%d",&b);
t=a;
a=b;
b=t;
printf("After
swapping\n a= %d b= %d",a,b);
getch();
}
Practice yourself. You should know that, Practice makes a
man perfect. Thank you all.
0 comments:
Post a Comment