Computer Science, asked by madhaveshwar, 11 months ago

write a program to get this output
a
a a
a a a
a a a a
a a a
a a
a
plzzz...... do it fast

Answers

Answered by Anonymous
2

Answer:

class Pattern

{

public static void main()

{

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

{

for(int j=0;j<=i;j++)

System.out.print("a");

System.out.println();

}

for(int i=3;i>0;i--)

{

for(int j=1;j<=i;j++)

System.out.print("a");

System.out.println();

}

}

}

Thank you

PLS MARK IT BRAINLIEST

Similar questions