Commit 8906f07b by Gürcan Güleç

making a small update

parent 32495a2a
Showing with 19 additions and 11 deletions
......@@ -12,6 +12,25 @@
#include <stdlib.h>
#include <time.h>
void fillMatrix(int arr[100][100], int row, int column);
void readMatrix(int arr[100][100], int row, int column);
void findTotals(int arr[100][100], int row, int column);
void findClerk(int arr[100][100], int row, int column);
void displayMatrix(int arr[100][100], int row, int column);
int main()
{
srand ( time(NULL) );
int matrix[100][100];
int r = 5;
int c = 5;
fillMatrix(matrix,r,c);
displayMatrix(matrix, r, c);
return 0;
}
// filling the matrix with random values
void fillMatrix(int arr[100][100], int row, int column)
{
......@@ -96,14 +115,3 @@ void displayMatrix(int arr[100][100], int row, int column)
findClerk(arr, row, column);
}
int main()
{
srand ( time(NULL) );
int matrix[100][100];
int r = 5;
int c = 5;
fillMatrix(matrix,r,c);
displayMatrix(matrix, r, c);
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment