write a program to print the given pattern
*****
****
***
**
*
Answers
Answered by
4
Answer:
Here is your answer.....
I hope it helped....
Please mark as brainliest answer.....
Attachments:
Answered by
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