Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
videid
/
iax0583
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a4f10e4c
authored
Oct 20, 2017
by
videid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lab7
parent
9c5f51bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
lab7/lab7.C
lab7/lab7.C
0 → 100644
View file @
a4f10e4c
#include <stdlib.h>
#include <stdio.h>
#define ARRAY_SIZE 25
int
function
(
int
input
);
int
main
()
{
int
array
[
ARRAY_SIZE
]
=
{
0
};
for
(
int
i
=
0
;
i
<
ARRAY_SIZE
;
i
++
)
{
array
[
i
]
=
function
(
i
);
}
for
(
int
j
=
0
;
j
<
ARRAY_SIZE
;
j
++
)
{
int
b
=
array
[
j
];
printf
(
"%d"
,
j
);
}
return
0
;
}
int
function
(
int
input
)
{
return
(
input
*
(
input
-
1
));
}
int
test
()
{
char
b
=
"message"
;
printf
(
"%d"
,
19
)
return
b
;
}
\ No newline at end of file
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