Untitled
unknown
plain_text
2 years ago
491 B
10
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;
}
Editor is loading...