Count entries equal to x in a special matrix
You are given a square matrix (matrix[][]) of order n, where matrix[i][j] = i*j. Find the number of cells which have entry equal to a given number x. NOte : Indexing of matrix starts from 1, i.e. 1<= i,j <= n. Examples : Input : matrix[][] = {1, 2, 3, 4, 2, 4, 6, 8, 3, 6, 9, 12, 4, 8, 12, 16}