연습문제 7-2 에 2번이요
좋아해
2023.04.01
질문 제목 : while의 중첩while의 중첩이 왜 이렇게 나오는건가요;질문 내용 :
#include stdio.h
int main(void)
{
int a=0;
int b=0;
while(a5)
{
while(ba)
{
printf(o);
b++;
}
b=0;
printf(*\n);
a++;
}
return 0;
}이거를 봐도 왜 이게
*
o*
oo*
ooo*
oooo*
이렇게 나오는지 모르겟네요;
처음엔 while,printf,while 순서로 썻는데 보니까 while,while,printf 쓰네요;
// 이런식으로 옆에 설명좀;