______________________________________________________
#include"iostream.h"
void main()
{
//baris lurus
cout<<"+==========================================================+ \n";
cout<<" TULISAN ALLAH BY.MARDHY S1-T.INFORMATIKA \n";
cout<<"+==========================================================+ \n \n";
for (int a=1;a<=10;a++){
for (int b=1;b<=5;b++){
cout<<"*";
}
for (int c=5;c>=1;c--){
cout<<"*";
}
//baris lurus 1 menyamping
for (int h=15;h>=1;h--){
cout<<" ";
}
for (int i=5;i>=1;i--){
cout<<"*";
}
//baris lurus 2 menyamping
for (int j=15;j>=1;j--){
cout<<" ";
}
for (int k=5;k>=1;k--){
cout<<"*";
}
//baris lurus 3 menyamping
for (int l=5;l>=1;l--){
cout<<" ";
}
for (int m=5;m>=1;m--){
cout<<"*";
}
cout<<endl;
}
//baris datar 1
{for (int a=1;a<=3;a++){
for (int b=1;b<=5;b++){
cout<<" ";
}
//betis 1
for (int c=1;c<=5;c++){
cout<<"*";
}
for (int d=1;d<=15;d++){
cout<<" ";}
//betis 2
for (int e=1;e<=5;e++){
cout<<"*";}
for (int f=1;f<=15;f++){
cout<<" ";}
//betis 3
for (int g=1;g<=5;g++){
cout<<"*";}
for (int h=1;h<=5;h++){
cout<<" ";}
//betis 4
for (int i=1;i<=5;i++){
cout<<"*";}
cout<<endl;}
}
for (int d=5;d>=1;d--){
cout<<" ";
}
for (int e=45;e>=1;e--){
cout<<"*";
}
for (int o=5;o>=1;o--){
cout<<" ";
}
for (int p=5;p>=1;p--){
cout<<"*";
}
cout<<endl;
//baris datar 2
for (int f=5;f>=1;f--){
cout<<" ";
}
for (int g=45;g>=1;g--){
cout<<"*";
}
for (int n=5;n>=1;n--){
cout<<" ";
}
for (int q=5;q>=1;q--){
cout<<"*";
}
}
Semoga Bermanfaat (y)
Karya Cipta : Mardhy (STT-PLN)
No comments:
Post a Comment