Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
491 B
0
Indexable
#include <stdio.h>

int main() {
    int T;
    scanf("%d", &T); // Read the number of test cases
    
    while (T--) {
        unsigned long long N;
        scanf("%llu", &N); // Read the number N
        
        // Extract and print the digits of N from right to left
        while (N > 0) {
            printf("%llu ", N % 10);
            N /= 10;
        }
        
        printf("\n"); // Move to the next line for the next test case
    }
    
    return 0;
}