Solved programming problem

Star Pattern - 1.

Source code

Main Class:

package pkg1.a;

public class A

{

    public static void main(String[] args)

    {

        for(int i =0;i<5;i++)

        {

            for(int j = 0;j<5;j++)

            {

                System.out.printf("* ");

            }

            System.out.println("");

        }

    }

 

}

Output

* * * * *

* * * * *

* * * * *

* * * * *

Join the discussion

Add your comment