Following are the program to calculate even digits sum:
#include <iostream>//header file
using namespace std;
int main()//main method
{
int a[10],s=0,i;//defining an array and an integer variable
cout<<"Enter array values: ";//print message
for(i=0;i<=9;i++)//defining a loop that input array value
{
cin>>a[i];//input array value
}
for(int i=0;i<=9;i++)//defining loop that check array value
{
if(a[i]%2==0)//defining if block that checks even number condition value
{
s=s+a[i];//adding even number value
}
}
cout<<"The sum of even number is: "<<s;//print even number sum value
return 0;
}
Program Explanation:
Output:
Please find the attached file.
Find out more information about the even number here:
brainly.com/question/4184435