Please help ! my code is not working properly. https://code.sololearn.com/ckTIdNHLR9uG/?ref=app | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Please help ! my code is not working properly. https://code.sololearn.com/ckTIdNHLR9uG/?ref=app

Code work on such way that add only even number. Promble: if I input 2 4 6 8 .It output 10. Expected result is 20.

8th Jun 2021, 1:24 PM
Star
Star - avatar
2 Answers
+ 1
It working as wriiten.. What is 1st numbers there? Can you Add details with a sample input to understand your doubt..? I tried with input 3 2 4 8 =>output 14
8th Jun 2021, 1:34 PM
Jayakrishna 🇮🇳