Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
351 B
0
Indexable
Never
#include <iostream>

using namespace std;

int main()
{
	int a, b;
	cin >> a >> b;
	int tempa = a;
	int tempb = b;
	int count_a = 0;
	int count_b = 0;

	while (tempa > 0) {
		tempa /= 10;
		count_a += 1;
	}
	while (tempb > 0) {
		tempb /= 10;
		count_b += 1;
	}
	if (count_a > count_b) {
		cout << a;
	}
	else cout << b;
}