Computer Science, asked by daryll979, 10 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