#include<iostream>
#include<conio>
int main()
{
int a,b,c,d;
cout<<"masukkan jumlah baris= ";cin>>a;
for(b=1;b<=a;b++)
{
for(c=a;c>=b;c--)
{
cout<<" ";
}
for(d=1;d<=b;d++)
{
cout<<"*";
}
cout<<endl;
}
getch();
}
0 comments:
Post a Comment