#include <stdio.h>

int main() {
    int A = 0;
    int B = 0;
    int C = 0;
    int D = 0;
    while (A < 30) {
        B = 0;
        while (B < A) {
            C = 0;
            while (C < B) {
                D = 0;
                while (D < C) {
                    printf("%d",D);
                    D++;
                }
                printf(":::%d ",C);
                C++;
            }
            printf("::%d ",B);
            B++;
        }
        printf(":%d\n",A);
        A++;
    }
    
    
    return 0;
}

Embed on website

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