프로그래밍언어/C언어
별찍기
유선생님의 코딩 교실
2011. 9. 15. 00:42
#include <Stdio.h>
i=5;
main()
{while(i)
{while(1)
{puts("oooo*"+--i);
printf("%d",i);
break;}
}
}
같은 프로그램 다른 소스
#include <stdio.h>
int main()
{
int i=0,j=0;
while(i<=4)
{
while(j<i)
{printf("o");
}
printf("*\n");
i++;
}
return 0;
}