diff --git a/Array_left_rotation.cpp b/Array_left_rotation.cpp new file mode 100644 index 000000000..11fa154d1 --- /dev/null +++ b/Array_left_rotation.cpp @@ -0,0 +1,30 @@ +#include +using namespace std; +int main(){ + int n,k; + cout<<"Enter size of array=\t"; + cin>>n; + cout<<"Enter Number of indeces u want to rotate the array to left=\t"; + cin>>k; + int a[n];cout<<"Enter elements of array=\t"; + for(int i=0;i>a[i]; + } + int temp=0; + for(int i=0;i