diff --git a/c++/Left Rotation.cpp b/c++/Left Rotation.cpp new file mode 100644 index 0000000..d27bc84 --- /dev/null +++ b/c++/Left Rotation.cpp @@ -0,0 +1,34 @@ +#include +#include +using namespace std; +void rotateleft(int arr[],int d) +{ + int n = (sizeof(arr)/2)+1; + for(int i=0; i>n>>d; + int arr[n]; + cout<<"Enter the elements of the array : "; + for (int i=0; i>arr[i]; + } + rotateleft(arr,d); + return 0; +} +