Write a program to print the following *
* *
* * *
* * * *
Answers
Answered by
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