Question: computer science in c language 1 1 A Program to find the weather both (diagonal and anti-diagonal ) present inside a NxN matrix are equal

 computer science in c language 1 1 A Program to find

computer science in c language

1 1 A Program to find the weather both (diagonal and anti-diagonal ) present inside a NxN matrix are equal or not ie if 1st element of diagonal and anti diagonal is equal similarly 2n element of diagonal and anti diagonal is equal and so on - then it's considered equal otherwise not equal. The output should be in a similar fashion For NXN Matrix 3x3 Output: 2 Diagonal and Anti-diagonal are same 1 is equal to 1 2 3 is equal to 3 2 is equal to 2 2x2 Output: 4 Diagonal and Anti-diagonal are different 2 3 is not equal to 4 2 is equal to 2 UT 3 7 N N 3 2 2 Parta) Provide at least two sample input and output [2 marks]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!