Question: Write a C program that uses at least three functions, one of which returns a substantive value. The user enters the square matrix of size
Write a C program that uses at least three functions, one of which returns a substantive value. The user enters the square matrix of size S (S> 2), the range value V (V> 3), and the file name F. Fill the matrix with random numbers as follows (see example): The elements above the main diagonal and the anti diagonal and below the main diagonal and the anti diagonal (upper and lower triangles) are positive random numbers between 1 and V. Below the main diagonal and above the anti diagonal, and below the anti diagonal and above the main diagonal (left and right triangles), there are negative random numbers between -V and -1. The elements of the main diagonal and the anti diagonal have a value of 0. Save the matrix to a text file F.
Example: S=5 and V=9

O 5 2 8 0 -2 O 0-5 -7 -4 0-1 -3 -3 O O -2 O 7 7 2 O
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
