#include <stdio.h>

int main() {
    for(int i=0;i<3;i++){
        printf("%d 번째 반복문: \n", i);
        for(int j=1;j<=10;j++){
            printf("%d ", j);
        }
        printf("\n");
    }

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

    for(int i=0;i<=4;i++){
        for(int j=1;j<=i+1;j++){
            printf("*");
        }
        printf("\n");
    }

    printf("\n");

    for(int i=4;i>=0;i--){
        for(int j=i+1;j>=1;j--){
            printf("*");
        }
        printf("\n");
    }

    
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: