Count occurrences of an element in a matrix of size N * N generated such that each element is equal to product of its indices

Given two positive integers N and X, the task is to count the occurrences of the given integer X in an N-length square matrix generated… Read More The post Count occurrences of an element in a matrix of size N * N generated such that each element is equal to … Continue reading Count occurrences of an element in a matrix of size N * N generated such that each element is equal to product of its indices