Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
370 B
2
Indexable
Never

#include <iostream>

using namespace std;
int main()
{
	int a, summ=0, c,max=0,s=0;
	cin >> a;
	for (int i = 0; a > 0; i++)
	{
		summ = a % 10;
		a /= 10;
		if (summ % 2 == 0 && i < 4) {
			if (summ > max) {
				max = summ;
				cout << max << endl;
			}
		}
		if (a == 6) {
			s++;
			if (s == 3) {
				cout << "Ti debil????";
			}
		}
	}

}
Leave a Comment