#include
using namespace std;
int main()
{
int val = 253;
int sum = 0;
int tmp = 0;
int c = 0;
while (val) {
tmp = val % 10;
if (!(tmp % 2)) {
++c;
}
sum += tmp;
val /= 10;
}
cout << "Res = " << sum << endl;<br> cout << "Count = " << c << endl;<br> system("pause");
return 0;
}