Untitled
Anonymous
c_cpp
10/13/2023 9:12 PM
368 B
20
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...