answer in java please
Attachments:
Answers
Answered by
0
Answer:
Here is your Third program.
import java.util.*;
class pattern
{
public static void main (String[] args)
{
int n, i, j, k;
Scanner sc = new Scanner (System.in);
for (i=1;i<=5;i++)
{
for (j=1;j<=i; j++)
{
System.out.println ("*");
}
System.out.println ();
}
}
}
Similar questions