Computer Science, asked by ayaazudeen, 7 months ago

write a Java Program
@ @ @ @@
@ @ @@
@ @
@@ @ @
@@@@@​

Answers

Answered by anindyaadhikari13
4

Correct Question:-

➡ Write a program in Java to display the following pattern.

@ @ @ @ @

@ @ @ @

@ @ @

@ @

@ @ @

@ @ @ @

@ @ @ @ @

Program:-

This is written in Java.

class Pattern

{

public static void main(String args[])

{

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

{

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

System.out.print("@ ");

System.out.println();

}

for(int i=3;i<=5;i++)

{

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

System.out.print("@ ");

System.out.println();

}

}// main()

}// class

Answered by saloni1234sk
0

Answer:

this is the answer of your questions

Attachments:
Similar questions