Computer Science, asked by sheetla58prasad, 11 months ago

write a program to display the character in the given format:
1)@@@@@
@@@@
@@@
@@
@​

Answers

Answered by yashchmckv
0

This is the for loop part.

Hope u can write the rest of the program.

for(int i=5;i>=1;i--)

{

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

{

System.out.print("@");

}

System.out.println();

}

Hope it works.

If not then inform me.. I'll see in it.

Similar questions