A C Program to rotate the value of the variables.


#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,x,y,z;
clrscr();

printf("Enter value of a,b,c:");
scanf("%d %d %d",&a ,&b ,&c);
a=x;
b=y;
c=z;
x=c;
z=b;
y=a;
printf("value of a,b,c is:%d %d %d",a,b,c);
getch();
}

Comments