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 to a variable if all the sums are equal and assign 0 if not. Use a function aside from main function that does not returns a value. See attached table in the instructions for additional requirement.
WHILE LOOP
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
