Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gürcan Güleç
/
iag0581
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8906f07b
authored
Dec 10, 2016
by
Gürcan Güleç
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
making a small update
parent
32495a2a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
homework2/homework2.c
homework2/homework2.c
View file @
8906f07b
...
@@ -12,6 +12,25 @@
...
@@ -12,6 +12,25 @@
#include <stdlib.h>
#include <stdlib.h>
#include <time.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
// filling the matrix with random values
void
fillMatrix
(
int
arr
[
100
][
100
],
int
row
,
int
column
)
void
fillMatrix
(
int
arr
[
100
][
100
],
int
row
,
int
column
)
{
{
...
@@ -96,14 +115,3 @@ void displayMatrix(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
);
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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment