Sunday, 27 October 2013

Program Java Mencetak Bintang Segitiga

package bintang;

/**
 *
 * @author toshiba
 */
public class Bintang {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        for (int i=3; i>=1; i--){
            for (int j=i; j>=1; j--){
                System.out.print("*");
            }
            System.out.println();
        }
    }
}