#include<stdio.h>
int main()
{
int a, b, c, anik;
printf("Enter a : ");
scanf("%d", &a);
printf("Enter b : ");
scanf("%d", &b);
printf("Enter c : ");
scanf("%d", &c);
anik = a;
a = b;
b = c;
c = anik;
printf("\nAfter Swapping : \n");
printf("a = %d\n", a);
printf("b = %d\n", b);
printf("c = %d\n", c);
return 0;
}
int main()
{
int a, b, c, anik;
printf("Enter a : ");
scanf("%d", &a);
printf("Enter b : ");
scanf("%d", &b);
printf("Enter c : ");
scanf("%d", &c);
anik = a;
a = b;
b = c;
c = anik;
printf("\nAfter Swapping : \n");
printf("a = %d\n", a);
printf("b = %d\n", b);
printf("c = %d\n", c);
return 0;
}
Comments
Post a Comment