please do this Java pattern
Attachments:
Answers
Answered by
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
Computer Science,
5 months ago
Math,
5 months ago
Physics,
11 months ago
English,
11 months ago
Hindi,
1 year ago