1. What I learned

    How to initialize multiple variables

        When initializing multiple variables in a single line, they should be written separately. ex) ‘int a=0, b=1, c=2;’

2. Code

#include <iostream>

using namespace std;

int main(void) {
    int num1, num2;
    int rev1=0, rev2=0;
    cin >> num1 >> num2;

    for (int i=0 ; i<3 ; i++) {
        rev1 *= 10;
        rev2 *= 10;
        rev1 += num1%10;
        rev2 += num2%10;
        num1 /= 10;
        num2 /= 10;
    }

    if (rev1 > rev2) {
        cout << rev1 << '\n';
    }
    else {
        cout << rev2 << '\n';
    }
    return 0;
}

3. Result

        Runtime : 0 ms, Memory usage : 2020 KB
        (Runtime can be different by a system even if it is a same code.)

Check out the my GitHub repo for more info on the code. If you have questions, you can leave a reply on this post.