Untitled
unknown
c_cpp
a year ago
188 B
3
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
#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); }