Sum of diagonal elements

Easy 20 pts New · no attempts yet csharp

Sum main diagonal of square matrix {{1,2,3},{4,5,6},{7,8,9}} (1+5+9=15).

Static hints
  • Add m[i,i] for all i.

Toolliyo Coach

Stuck? Get a nudge — not the answer

Progressive help: Nudge → Guide → Approach. Full solution stays behind the Solution tab.

Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details