1 5 7
3 2 4
6 8 9
if i add the diagonal the sum is (1+2+9=12) one more diagonal (7+6=13) i dint include 2 because its already added...want the out put 12+13=25
can anyone tell me c# code for this plz

Recommended Answers

All 4 Replies

And which part of the code are you having problem with?

And which part of the code are you having problem with?

i want sql query for this?

SQL?? SQL is used for database queries...are you sure thats what you need?

you a look a bit more confused as to what u want...
initially u said u wanted a C# code, n then later, u say u need a SQL query for this...
SQL is only for querying the database.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.