// Take a matrix as input from the user. Search for a given number x and // print the indices at which it occurs package Array; import java.util.*; public class SearchElementInMatrix { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int rows = sc.nextInt(); int cols = sc.nextInt(); int array[][] = new int[rows][cols]; //input for(int i=0; i