#include <stdio.h>
void main(void)
{
int h, w, a, b;
for(a=0 ; a<5 ; a++)
{
for(b=0 ; b<5 ; b++)
{
if(a==b || a+b==4)
printf("*");
else
printf(" ");
}
printf("\n");
}
}
'c언어' 카테고리의 다른 글
c언어 express 7-4 (0) | 2018.04.14 |
---|---|
c언어 express 제 7장 1번 (0) | 2018.04.14 |
c언어 실습 4-2 (0) | 2018.04.10 |
c언어 실습 4-1 (0) | 2018.04.10 |
c언어 실습 5-4 (0) | 2018.04.10 |