Q14 Given three variables x, y, z write a function to circularly shift their values to right. In order words if x=5, y=8, z=10, after circular shift y=5, z=8, x=10. Call the function with variables a, b, c to circularly shift values.
Program: 135
Given three variables x, y, z write a function to circularly shift their values to right.
In order words if x=5, y=8, z=10, after circular shift y=5, z=8, x=10.
Call the function with variables a, b, c to circularly shift values.
Output:
Enter x: 5 Enter y: 8 Enter z: 10 Before Shift: x: 5 y: 8 z: 10 After Shift: x: 10 y: 5 z: 8