Practice · 3 of 3
Diagonal Sum
CHALLENGE
Difficulty: beginner+25 XP
Implement int diag_sum(const int g[][3]) returning g[0][0] + g[1][1] + g[2][2].
Press Submit to check your solution.
Back to lesson: Practice: Grid Exercises
Practice · 3 of 3
Implement int diag_sum(const int g[][3]) returning g[0][0] + g[1][1] + g[2][2].
Back to lesson: Practice: Grid Exercises