✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Select the code you want to add to this program on C code to calculate the sum of the 3x3 matrix elements.
#include <stdio.h>
int main() {
int matrix[3][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
int sum = 0;
// Put answer code here
printf("The sum of all elements is: %d\n", sum);
return 0;
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!