Untitled
unknown
c_cpp
2 years ago
188 B
5
Indexable
#include <iostream>
using namespace std;
void div2(int x) {
while (x > 0) {
int d = x % 10;
x /= 10;
cout << d;
}
}
int main()
{
int x;
cin >> x;
div2(x);
} Editor is loading...
Leave a Comment