Preview:
 #include <stdio.h>

int main() {
    int N;
    scanf("%d", &N);
    for (int i = 1; i <= N; i++) {
        int n;
        scanf("%d", &n);
        while (n > 0) {
            int digit = n % 10;
            printf("%d ", digit);
            n = n / 10;
        }
        printf("\n");
    }
    return 0;
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter