Bintang7_5

*******
 *******
  *******
   *******
    *******
PROGRAM JAVA :
class bintang 7_5


{
 public static void main (String[]args)
 {
     int i,j,k;
     int panjang = 5;
     for (j=0; j<panjang; j++)
     {
         for (k=0; k<j; k++)
         {
          System.out.print(" ");
         }
         for (i=0; i<(panjang+2); i++)
         {
             System.out.print("*");
            }
            System.out.println();
        }
    }
}

No comments:

Post a Comment