提交时间:2020-08-14 16:37:06

运行 ID: 5640

#include <iostream> using namespace std; int main() { int n, index=0; cin >> n; while (n > 0){ if (index == 0) cout << n%10; else cout << " " << n%10; index++; n /= 10; } cout << endl; return 0; }