SIGMAxJINWOO's Square Matrix
SIGMAxJINWOO's Square Matrix
DATE-17/01/25
PROGRAM
import java.util.*;
class Mat
int n,i,j;
while(true)
n = in.nextInt();
break;
else
char c1,c2,c3;
c2 = in.next().charAt(0);
c3 = in.next().charAt(0);
m[0][0] = c1;
m[0][n-1] = c1;
m[n-1][0] = c1;
m[n-1][n-1] = c1;
m[0][i] = c2;
m[n-1][i] = c2;
m[i][0] = c2;
m[i][n-1] = c2;
{
for(j = 1; j < n-1; j++)
m[i][j] = c3;
System.out.print(m[i][j] + "");
System.out.println();
OUTPUT