Untitled

 avatar
user_0563559
c_cpp
a year ago
452 B
2
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
    int a, c;

    cin >> a >> c;

    int b = 0;
    int d = 0;

    int f = a;
    int g = c;

    while (a != 0) {
        a /= 10;
        b += 1;
    }
    while (c != 0) {
        c /= 10;
        d += 1;
    }
    if (b < d) {
        int u = (f * 10) + g % 10;
        cout << u;
    }
    else {
        int y = (g * 10) + f % 10;
        cout << y;
    }
}