#include<conio.h>
using namespace std;
int main(){
int c,d,e;
cout<<"masukan bilangan : ";
cin>>c;
for(d=1;d<=c;d++){
if(d !=c){
for(e=1;e<=d;e++){
if(e==1 || e==d) {
cout<< "*";
}else{
cout<< " ";
}
}
}else{
for(e=1;e<=d;e++){
cout<< "*";
}
}
cout << endl;
}
}