상세 컨텐츠

본문 제목

구구단 코드

c언어

by bumychoi 2025. 2. 28. 12:50

본문

#include<stdio.h>

int main(void) {
for (int i = 2; i <= 9; i++) {
printf("\n%d단 출력\n\n", i);
for (int j = 1; j <= 9; j++) {
printf("%d x %d = %d\n", i, j, i * j);
}
}
return 0;
}

'c언어' 카테고리의 다른 글

c 숫자 맞추기  (0) 2025.03.03
피라미드 2  (0) 2025.02.28
피라미드 만들기  (0) 2025.02.28
c 반복문  (0) 2025.02.28
c언어 기초 입출력  (0) 2025.02.28

관련글 더보기