Doubt in the following code please let me know where did i go wrong
at line 22
what you have done??
correct way to print 2D array is
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
cout<<arr[i][j]<<" ";
}
cout<<endl;
}
after this it will give desire output
i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course