Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- char s[100];
- scanf("%[^\n]",s);
- for(int i=1; i<=10; i++)
- {
- for(int j=1; j<=10; j++)
- {
- if(i==3)
- {
- if(j==7||j==8||j==9||j==10||j==1||j==2){
- printf("* ");
- }
- else
- printf(" ");
- }
- else if(i>=4)
- {
- if(i==4&&j==6)
- {
- printf(" ");
- }
- else if(i==5&&j==6)
- {
- printf(" ");
- }
- else if(i==6&&j==6)
- {
- printf(" ");
- }
- else if(i==6&&j==4)
- {
- printf(" ");
- }
- else if(i==6&&j==5)
- {
- printf(" ");
- }
- else if(j==3)
- printf(" ");
- else
- printf("* ");
- }
- else
- printf("* ");
- }
- printf("\n");
- }
- }
Add Comment
Please, Sign In to add comment