write a program in Java to
Attachments:
Answers
Answered by
0
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
Similar questions
Computer Science,
3 months ago
History,
3 months ago
Chemistry,
3 months ago
Physics,
7 months ago
English,
1 year ago
Hindi,
1 year ago
Computer Science,
1 year ago