Computer Science, asked by israt8777, 1 month ago

answer in java please​

Attachments:

Answers

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