#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int
i,j,k,n;
cout<<"Masukkan Angka
Untuk Gambar Segitiga :";
cin>>n;
cout<<endl;
for (i=n;i>=0;i--)
{
for(j=i;j>=0;j--)
{
cout<<" ";
}
for(k=0;k<=n-i;k++)
{
cout<<"*";
}
for(k=0;k<n-i;k++)
{
cout<<"*";
}
cout<<endl;
}
system("pause");
return
0;
}
0 Comment to "Dasar-dasar Pemrograman : Membuat Segitiga Bintang "
Post a Comment