Write a programme in Java which will print
*
**
***
****
*****
Answers
Answered by
1
Answer:
class pattern
{
public static void main (String arg[])
{
int i, j;
for(i=1; i<=5; i++)
{
for(j=1; j<=i; j++)
{
System.out.print("*");
}
System.out.println(" ");
}
}
}
Similar questions