output is same as sample input can anyone explain the the reason it is not giving even one output
Not giving output
Submission #3648001 Source Code #include using namespace std; int main() { int n,m; int arr[10][10]; cin>>n>>m; for(int i =0;i<n;i++){ for(int j=0;j<m;j++){ cin>>arr[i][j]; } } for(int i =0;i<n;i++){ if(i&1){ for(int j=m-1;j>=0;jβ){ cout<<arr[j][i]<<", β; } } else{ for(int j=0;j<m;j++){ cout<<arr[j][i]<<β, "; } } } cout<<βENDβ; return 0; }
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.