diff --git a/MatrixRolling.c b/MatrixRolling.c new file mode 100644 index 0000000..5041b7b --- /dev/null +++ b/MatrixRolling.c @@ -0,0 +1,55 @@ +#include + +void displayArray(int arr[][3],int row,int col); +int main(){ + int row,col=3; + printf("Enter no.of Rows in your matrx "); + scanf("%d",&row); + + int array[row][col]; + for(int i=0;i<4;i++){ + for(int j=0;j<3;j++){ + + printf("Enter a %d row %d column number ",i,j); + scanf("%d",&array[i][j]); + } + } + displayArray(array,row,col); +} + +void displayArray(int arr[][3],int row,int col){ + int i; + printf("Before Rotation\n"); + for(i=0;i