Display following output by using for ... loop.
* * *
* * *
* * *
Answers
Answered by
4
Answer:
public class pattern
{
public static void main(String[] args)
{
int i,j;
for(i=0;i<=2;i++)
{
for(j=0;j<=2;j++)
{
System.out.print("*");
}
System.out.println();
}
}
}
Similar questions
Hindi,
1 month ago
Biology,
1 month ago
Math,
1 month ago
Computer Science,
2 months ago
Computer Science,
2 months ago
Biology,
7 months ago