GitHub Viewer
//Print the spiral order matrix as output for a given matrix of numbers.
package Array;
import java.util.*;
public class SpiralOrderMatrix {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int m = sc.nextInt();
int matrix[][] = new int[n][m];
for(int i=0; i