Untitled
Anonymous
c_cpp
10/19/2023 5:08 PM
440 B
17
Indexable
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int a,doub = 0;
cin >> a;
int copy_a = a;
while (a != 0) {
doub *= 10;
doub += a % 10;
a = a / 10;
}
while (doub != 0) {
cout << " " << doub % 10;
doub = doub / 10;
}
}Editor is loading...