I am writing a program for the code coach challenge but my all first three result are ok but test case 4,5 are not ok
#include <iostream> using namespace std; int main() { int i; int a; int c; cin>>i>>a>>c; char fat=i%2; char cat=a%2; char car=c%2; if(fat==0&&cat==0&&car==0){ cout<<i+a+c; } else if(fat>=1&&cat==0&&car==0){ cout<<a+c; } else if(fat==0&&cat>=1&&car==0){ cout<<i+c; } else if(fat==0&&cat==0&&car>=1){ cout<<i+a; } else if(fat>=1&&cat==0&&car>=1){ cout<<a; } else if(fat>=1&&cat>=1&&car==0){ cout<<c; }else if(fat==0&&cat>=1&&car>=1){ cout<<a;} else if(cat=='\0'){ for(i=0;i>=cat;--i){ int c=i; if(c%2==0){ cout<<"0"; } }} return 0; } That's odd... +50 XP You want to take a list of numbers and find the sum of all of the even numbers in the list. Ignore any odd numbers. Task: Find the sum of all even integers in a list of numbers. Input Format: The first input denotes the length of the list (N). The next N lines contain the list elements as integers. Please help me!!!