#include <conio.h>
#include <iostream.h>
main(){
clrscr();
int i,j;
for(i=1;i<=23;i++){
for(j=1;j<=46;j++){
if((i==1)||((i>=20)&&(i<=23))) if((j>=5)&&(j<=46)) cout<<"*"; else cout<<" ";
else if((i>=2)&&(i<=4)) if(((j>=5)&&(j<=10))||((j>=41)&&(j<=46))) cout<<"*"; else cout<<" ";
else if(i==5) if(((j>=6)&&(j<=11))||((j>=40)&&(j<=45))) cout<<"*"; else cout<<" ";
else if(i==6) if(((j>=8)&&(j<=13))||((j>=38)&&(j<=43))) cout<<"*"; else cout<<" ";
else if(i==7) if(((j>=10)&&(j<=15))||((j>=36)&&(j<=41))) cout<<"*"; else cout<<" ";
else if(i==8) if(((j>=12)&&(j<=17))||((j>=34)&&(j<=39))) cout<<"*"; else cout<<" ";
else if(i==9) if(((j>=14)&&(j<=19))||((j>=32)&&(j<=37))) cout<<"*"; else cout<<" ";
else if((i==10)||(i==14)) if((j>=16)&&(j<=35)) cout<<"*"; else cout<<" ";
else if((i==11)||(i==13)) if((j>=18)&&(j<=33)) cout<<"*"; else cout<<" ";
else if(i==12) if((j>=20)&&(j<=31)) cout<<"*"; else cout<<" ";
else if(i==15) if((j>=14)&&(j<=37)) cout<<"*"; else cout<<" ";
else if(i==16) if((j>=12)&&(j<=39)) cout<<"*"; else cout<<" ";
else if(i==17) if((j>=10)&&(j<=41)) cout<<"*"; else cout<<" ";
else if(i==18) if((j>=8)&&(j<=43)) cout<<"*"; else cout<<" ";
else if(i==19) if((j>=6)&&(j<=45)) cout<<"*"; else cout<<" ";
}
cout<<"\n";
}
getch();
}
Tidak ada komentar:
Posting Komentar