#include#include using namespace std; int main() { int n, x, y; cin >> n; x = n; int i; for (i = 1; i <= 10; i++) { if (i == 1) { y = x % 10; cout << y << " "; } if (x < 10) break; y = (x / 10) % 10; cout << y << " "; x = x / 10; } return 0; }

#include#include using namespace std; int main() { int n, x, y; cin >> n; x = n; int i; for (i = 1; i <= 10; i++) { if (i == 1) { y = x % 10; cout << y << " "; } if (x < 10) break; y = (x / 10) % 10; cout << y << " "; x = x / 10; } return 0; }