#include <iostream.h>
#include <conio.h>
void main()
{
int n;
int baris;
int kolom;
n=5;
cout<<endl;
cout<<"Belah Ketupat"<<endl;
cout<<"-------------"<<endl;
cout<<endl;
for(baris=1; baris<=n; baris++)
{
for(kolom=baris; kolom<=n-1; kolom++)
cout<<" ";
for(kolom=1; kolom<=baris-1; kolom++)
cout<<kolom;
cout<<endl;
}
getch();
}
0 comments:
Post a Comment