Untitled
Anonymous
plain_text
08/19/2023 3:57 PM
656 B
19
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...