Following are the program to calculate even digits sum:
<h3>Program:</h3>
#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:
- Defining a header file.
- Defining the main method.
- Inside the main method, an integer array "a", and two integer variable "s,i" is declared.
- In the next step, a for loop is declared that input the array value, and after input value another loop is declared that check even number value in array.
- In this loop it adds array value and after adding the value a print method is declared that prints its value.
Output:
Please find the attached file.
Find out more information about the even number here:
brainly.com/question/4184435
A two dimensional area with recognizable boundary is called a shape
Answer:
The answer is 1.Arc Consistency with Domain Splitting
Explanation:
in arc consistency with domain splitting If any of the domains is wiped out during the execution then no solution
Hence Option 1 is the correct answer
1. The purpose of an action game is to provide an alternate reality where you have opportunity to pursue adventure. The purpose of a trivia game is to have fun while answering questions, perhaps with a trace of competitivity. Since the games are in different genres, the purposes of the games are different; trivia games are oftentimes simpler in function, while action games require more involvement and of course, action.
2. Some games are easier to play with two people, like games that require teamwork. However, others are more conveniently played by yourself. For example, Ge0metry Dash should be played by yourself, but games like F0rtnite can be more easily played in teams. However, there are also games that can be played both by oneself and with others, like Min3craft.
3. The way you would play an action game is entirely different from how you would play a trivia game, so certain genres require different gameplay styles.