wap to print the pattern
****1
***2*
**3**
*4***
5****
angel974:
byeeee
Answers
Answered by
1
The answer in Java is:
class pattern
{
void main()
{
int c=5,l=1;
for(int i=1;i<=5;i++)
{
for(int j=1;j<=5;j++)
{
if(j==c)
System.out.print(l);
else
System.out.print("*");
}
c--;
l++;
System.out.println();
}
}
}
Answered by
1
I don't know the answer
Similar questions