Write a program to create an array and rotate the elements stored in the array by two positions.

By admin , 18 November, 2023
coding-cability

The program should first take the input of array size and then the elements of the array. Then program should rotate the elements of the array by 2.

Example Input : 12345 Output : 45123