Untitled

mail@pastecode.io avatar
unknown
c_cpp
8 months ago
349 B
1
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
    int a;
    cin >> a;
    if (a >= 100) {
        cout << a % 10;
        a /= 10;
        cout << a % 10;
        a /= 10;
        cout << a % 10;
    }
    else {
        cout << a % 10;
        a /= 10;
        cout << a % 10;
        a /= 10;
    }
    return 0;
}