How many number of rectangles are present in a MxN matrix?
Click here to See Answers
So we first select any two rows and then select any two points in columns.
Number of ways to select any two rows = mP2
Number of ways to select any two points in a row = nP2
Thus total number of rectangles possible are = mP2*nP2
Here nPk = n!/(n-k)!