Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started