Write a program to print a pattern as :(in java)
*****
****
***
**
*
Answers
Answered by
3
plz plz plzz follow me ND mark this as brainliest answer
Attachments:
Answered by
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