#include<stdio.h>

int main()
{
    int i=0,count=0;
    char a[100];
    scanf("%s",a);

    while(a[i]!='')
    {
        if((a[i]-'0')%2==0)  count+=(a[i]-'0');
        i++;
    }
    printf("%d",count);
}

内容来源于网络如有侵权请私信删除
你还没有登录,请先登录注册
  • 还没有人评论,欢迎说说您的想法!

相关课程

4786 0元 限免