Code coach [That's odd] | SoloLearn: Learn to code for FREE!

+2

Code coach [That's odd]

Task 4 and 5 failed!! Can anyone tell me what's wrong with my code ? https://code.sololearn.com/cCSOpek3TC55/?ref=app

5/31/2020 2:03:42 PM

Samir_Shah

6 Answers

New Answer

+4

#include <iostream> using namespace std; int main() { int x; int n; int sum=0; for(int i=0;i<=n;i++) { cin>>x; if(x%2==0) sum=sum+x; } cout<<sum; return 0; } Friend I hope this will help u with u r code to solve problem

+3

The Crazy Programmer you need to give a hint Becoz practice makes man better

+2

Samir_Shah Right. But The Crazy Programmer has give you a hint, not the ready solution.

0

But input should be a list of numbers And we need to find the sum of even numbers

0

Kuba Siekierzyński 😂😂😂

0

Thanks 😊