Computer Science, asked by Aneekmitra2006, 1 year ago

Write a programme in Java which will print

*
**
***
****
*****​

Answers

Answered by namanbhardwaj2604
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