#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int x,y;
for(x=1;x<=5;x++)
{
for(y=0;y<=5-x;y++)
cout<<" ";
for(y=1;y<=2*x-1;y++)
cout<<"*";
cout<<endl;
}
for(x=5;x>=1;x--){
for(y=0;y<=5-x;y++)
cout<<" ";
for(y=1;y<=2*x-1;y++)
cout<<"*";
cout<<endl;
}
return 0;
}
jadinya seperti ini
Monday, October 29, 2018
Codingan Belah Ketupat
Wkwkwk
Author & Editor
Perkenalkan Nama saya Rizky Maulana Bisa dipanggil Rizky saya kelas 10 saya sekolah di SMK Negeri 22 Jurusan TKJ.
5:10 AM
CPP
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment