/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package bintang;
/**
*
* @author Maswanul Dwi M
*/
import java.util.Scanner;
public class Bintang {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner input = new Scanner (System.in);
int n;
System.out.print("Masukkan Tinggi Bintang : ");
n = input.nextInt();
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= i; j++) {
//for (int i = n; i >= 1; i--) {
//for (int j = i; j >= 1; j--) {
System.out.print("*");
}
System.out.println();
}
}
}