Question: C-Programming Write a program. Use at least three subroutines, one of which returns a useful value. User enters the matrix dimensions Rows (Rows > 4),
C-Programming
Write a program. Use at least three subroutines, one of which returns a useful value. User enters the matrix dimensions Rows (Rows > 4), Columns (Columns > 4) and a positive value K (K > 8). Fill the matrix with integer numbers as follows (see example):
First fill the entire matrix with zeroes.
Replace elements in odd rows with odd random numbers in the range from 1 to K.
Replace elements in even columns with even random numbers in the range from 2 to K.
Write a program. Use at least three subroutines, one of which returns a useful value.

Examplel: Rows = 5, Columns = 5, K = 9 1 6 3 3 4 5 o 2 0 8 8 3 8 1 2 9 6 6 o 8 0 9 6 5 5 6 1 oo No L
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
