Computer Science, asked by anashanu, 1 year ago

Print the following pattern

Attachments:

MystFernandes: In What language ?
anashanu: java(blue j)

Answers

Answered by tamaghnadey1916
0

Answer:

class pattern

{

public static void main ()

{

int i,j;

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

{

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

{

if (i==j)

System.out.print (i);

else

System.out.print ("0");

}

System.out.println ();

}

}

}

Explanation:

I hope this helps you please mark me the Brainliest

Thank you

Similar questions