Computer Science, asked by daryll979, 11 months ago

Write a program to print the following *
* *
* * *
* * * *

Answers

Answered by nnpandey608
0

Answer:

Class pattern

{

void main()

{

int i;

int j;

for(i = 1; i <= 4 ;++i)

{

for(j = 1 ;j <= i ; j++)

System.out.print("* ");

System.out.println();

}

}

}

Explanation:

Similar questions