Conteúdo do Curso
C# Basics
C# Basics
Array Loops Challenge
Loop through the numbers
array and if the value of the element is even, add 1
to it, and if it's odd, multiply it by two. The original array should be modified.
main
- All the numbers that give a remainder
0
when divided by2
are called even numbers; - Use the loop variable
i
to index and access the array elements.
main
Tudo estava claro?