C LANGUAGE BOOK |
/*
WAP TO PERFORM SWAPPING OF TWO NUMBER.
*/
#include<stdio.h>
int main(void)
{
int a,i,j;
printf("\n\nEnter The Two Value For Swapping :\n");
scanf("\n%d%d", &i, &j);
printf("\n\nThe Two Value Are\n%d%s%d", i, " ", j);
swap(i, j);
}
swap(int i, int j)
{
int a;
a = i;
i = j;
j = a;
printf("\n\nThe Swap Value Are\n%d%s%d", i, " ", j);
}
C LANGUAGE BOOK |
No comments:
Post a Comment