Computer applications class 10
Computer applications class 10
Scanner;
import java.util.Scanner;
array[i][j] = scanner.nextInt();
}
}
Q.Fill a 2D array of order 4 x 4 print the left and right diagonal elements of the
array.
import java.util.Scanner;
array[i][j] = scanner.nextInt();
}
}
Fill a double dimensional array of order 4 X 4 print the largest element of the left
diagonal.
import java.util.Scanner;