#include <stdio.h>
int main(){
int i, j;
for(i=2; i<=4; i++){
for(j=5;j<=7;j++){
}
}
printf("%d x %d = %2d", i, j, i*j);
return 0;
}
이거 왜 출력되는게 4 x 7 = 28 이 아니고 5 x 8 = 40으로 나오는거에양??
#include <stdio.h>
int main(){
int i, j;
for(i=2; i<=4; i++){
for(j=5;j<=7;j++){
}
}
printf("%d x %d = %2d", i, j, i*j);
return 0;
}
이거 왜 출력되는게 4 x 7 = 28 이 아니고 5 x 8 = 40으로 나오는거에양??
저 조건은 i가 5가 되면서 나와지는 형태임
5일때 4보다 커서 루프를 빠져나옴
아 이해했다 ㄳㄳㄳㄳ