Untitled
unknown
c_cpp
2 years ago
274 B
11
Indexable
#include <iostream>
#include <string>
using namespace std;
int main() {
int A;
cin >> A;
int B;
for (B = 1; B <= A / 10; B *= 10) {
}
for (; B > 0; B /= 10) {
cout << A / B << ' ';
A %= B;
}
cout << '\n';
}Editor is loading...