C program to swap multipale values

Write a program in C to swap multipale value

the question it self is wrong.
swapping is possible between 2 values only. for multiple values it will be circular replacement.

swap dictionary meaning:“An exchange of one thing for another.”

i want to say if the input is 1,2,3,4,5,9,6 then the output is 6,9,5,4,3,2,1

I guess you are looking for reverse the order of numbers?

yes . please done the program

int a,b,c;
printf(“Enter number: );
printf("Reversal of number: ");

b = a;

do {
b = b/10;
c = a - (b*10);
a = a/10; } while(b>0);



I hope you are expecting this