코딩/C 언어
[C언어] 마름모 별찍기 간단한 예제
아래는 C 언어로 마름모 모양의 별 찍기 패턴을 출력하는 예제 코드입니다. #include int main() { int i, j, rows, spaces, stars; printf("마름모 별 찍기:\n"); rows = 5; spaces = rows - 1; stars = 1; // 위쪽 부분 for (i = 1; i