Computer Science, asked by shirin200590, 11 months ago

Write a program to print a pattern as :(in java)
*****
****
***
**
*​

Answers

Answered by prakritiflora
3

plz plz plzz follow me ND mark this as brainliest answer

Attachments:
Answered by Brenquoler
5

Given pattern:

* * * * *

* * * *

* * *

* *

*

Program in Java to print the given pattern:

class Pattern

{

public static void main (string args [])

{

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

{

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

{

System.out.print ("*");

}

System.out.println ();

}

}

}

Similar questions