Seção 1. Capítulo 25
single
Challenge: Matrix Sum
Deslize para mostrar o menu
Tarefa
Swipe to start coding
Write a program that calculates the sum of all elements in a 2D integer array and prints the result.
- Iterate through each row of the
matrixparameter. - For each row, iterate through each column.
- Add each element to a running total.
- Return the total sum.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 1. Capítulo 25
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo