Untitled
#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; }