My code is showing only the last element of the array
here is the link:
The is minor mistake in the code
you are taking input in a wrong manner, instead of a[n][m] input would come into a[i][j]
How does it matter if i change n,m to i,j like the names of variable
i got you thanks