Computer Science, asked by sdassamanta1, 11 months ago

please do this Java pattern​

Attachments:

Answers

Answered by HarshitaShreya
0

Answer:

class Pattern

{

public static void main (String ar[])

{

int i,j;

for(i=0;i<4;i++)

{

System.out.println();

for(j=0;j<2;j++)

{

if(i==0||i==4)

{

System.out.print("x"+((char)x+1));

}else

{System.out.println("y"+k(char)y+1));

}

}}}}

Similar questions