You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
349 B
16 lines
349 B
#include <stdio.h>
|
|
main()
|
|
{int r=0;
|
|
int c=0;
|
|
int star_one=10;
|
|
for(r=0;r<=star_one*9;r+=2)
|
|
{ for(c=0;c<=star_one*8;c++)
|
|
{if((r%star_one==0 || c%star_one==0)&&c%2==0 && (r<=star_one*4 || r>=star_one*4+star_one) || (r>=star_one*4 && r<=star_one*4+star_one && (c==0 || c==star_one*8)))
|
|
{printf("%c",'*');}
|
|
else
|
|
{printf("%c",' ');}
|
|
}
|
|
printf("\n");
|
|
}
|
|
}
|