Computer Science, asked by anil1977srivastava, 9 months ago

write a program to print the given pattern
*****
****
***
**
*​

Answers

Answered by PavoCristatus
4

Answer:

Here is your answer.....

I hope it helped....

Please mark as brainliest answer.....

Attachments:
Answered by TheUntrustworthy
15

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