Print the following pattern
Attachments:
MystFernandes:
In What language ?
Answers
Answered by
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