Question: Given a 3x3 matrix, create a program that will add the three elements that forms a line including the diagonals. Assign a value of 1

Given a 3x3 matrix, create a program that will add the three elements that forms a line including the diagonals. Assign a value of 1 if all the sums are equal and assign 0 if not. Use a function aside from main function that does not return a value.

Use "Do while loop" using C language.

ASAP, thank you very much!!!

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!