Which test case is failing

#include

using namespace std;

void spiralPrintClockWise( int arr[][100], int row, int col){
int sc=0, ec=col-1;
int sr=0, er=row-1;

while(sc<=ec and sr<=er){
for(int startrow=sc;startrow<=ec;startrow++){
	cout<<arr[sr][startrow]<<", ";
}
sr++;

for(int endcolumn=sr;endcolumn<=er;endcolumn++){
	cout<<arr[endcolumn][ec]<<", ";
}
ec--;
 
if(sr<er) {
for(int endrow=ec;endrow>=sc;endrow--){
	cout<<arr[er][endrow]<<", ";
}
er--;
}

if(sc<ec){
for(int startcolum=er;startcolum>=sr;startcolum--){
	cout<<arr[startcolum][sc]<<", ";
}
sc++;
}
}

cout<<"END";

}

int main() {

int crow,ccol;
cin>>crow>>ccol;
int arr[100][100];

for(int i=0;i<crow;i++){
	for(int j=0;j<ccol;j++){
		cin>>arr[i][j];		
	}
}

  spiralPrintClockWise(arr,crow,ccol);
return 0;

}

hi @pushkarsingh5247_4b1a78f1d102c737 buddy refer

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.