0

i need help writing code

help me please. I can't figure out how to write code using the continue statement that skips odd numbers when calculating the sum. lesson 18.2 c #

3rd Feb 2021, 12:45 PM
Рустем Ибрагимов
Рустем Ибрагимов - avatar
3 odpowiedzi
3rd Feb 2021, 12:49 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 3
If the remainder after dividing the number by 2 is 1, continue (meaning ignore the rest of the loop actions to update the running total).
3rd Feb 2021, 1:10 PM
Sonic
Sonic - avatar
3rd Feb 2021, 12:48 PM
Рустем Ибрагимов
Рустем Ибрагимов - avatar