dim takes as argument a matrix A. dim returns the list of the number of rows and columns of the matrix A. Input :
Output :