Untitled
unknown
plain_text
2 years ago
370 B
6
Indexable
#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????";
}
}
}
}Editor is loading...
Leave a Comment