📅  最后修改于: 2022-03-11 14:44:54.974000             🧑  作者: Mango
// Array Rotations
#include
using namespace std;
void arrayRotation(int arr[], int n){
int last = arr[n-1];
for(int i=n-1;i>0;i--)
arr[i] = arr[i-1];
arr[0] = last;
}
int main(){
int n,i,turns;
// size of the array
cin >> n;
int arr[n];
for(i=0;i> arr[i];
// Number of times the array is to be rotated
cin >> turns;
for(i=0;i