Bintang ( Java )

//nama : anna arthdi putra
//nim : 10030035
/**
*
* @author aerdy
*/
public class Bintang {
public static void main(String[] args) {

int n=1;
do{
for( int a=1 ; a<=1;a++){

System.out.println("");

for (int b=a ;b<n;b++){

System.out.print("*");
}
}
n++;
}while(n<=8);

}
}

Advertisements

Published by

jarcode

hello I am jarcode

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s