Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions

Question

=+Understand the fi eld of comparative IHRM.

Answered: 1 week ago